var e=Object.freeze({initialize:function({modulePath:e=".",importFunctionName:t="__import__"}={}){try{self[t]=new Function("u","return import(u)")}catch(n){const r=new URL(e,location),i=e=>{URL.revokeObjectURL(e.src),e.remove()};self[t]=e=>new Promise(((n,s)=>{const o=new URL(e,r);if(self[t].moduleMap[o])return n(self[t].moduleMap[o]);const a=new Blob([`import * as m from '${o}';`,`${t}.moduleMap['${o}']=m;`],{type:"text/javascript"}),c=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(a),onerror(){s(new Error(`Failed to import: ${e}`)),i(c)},onload(){n(self[t].moduleMap[o]),i(c)}});document.head.appendChild(c)})),self[t].moduleMap={}}}});function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e){for(var n=1;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var o,a,c,u,l,d,p,f,h,g={},v=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function _(e,t){for(var n in t)e[n]=t[n];return e}function b(e){var t=e.parentNode;t&&t.removeChild(e)}function S(e,t,n){var r,i,s,a={};for(s in t)"key"==s?r=t[s]:"ref"==s?i=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return I(e,a,r,i,null)}function I(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++c:i};return null==i&&null!=a.vnode&&a.vnode(s),s}function C(){return{current:null}}function E(e){return e.children}function A(e,t){this.props=e,this.context=t}function T(e,t){if(null==t)return e.__?T(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&l.sort(f));L.__r=0}function R(e,t,n,r,i,s,o,a,c,u,l){var d,p,f,h,m,_,b,S,C,A=0,w=r&&r.__k||v,O=w.length,L=O,R=t.length;for(n.__k=[],d=0;d0?I(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)?(h.__=n,h.__b=n.__b+1,-1===(S=U(h,w,b=d+A,L))?f=g:(f=w[S]||g,w[S]=void 0,L--),B(e,h,f,i,s,o,a,c,u,l),m=h.__e,(p=h.ref)&&f.ref!=p&&(f.ref&&G(f.ref,null,h),l.push(p,h.__c||m,h)),null!=m&&(null==_&&(_=m),(C=f===g||null===f.__v)?-1==S&&A--:S!==b&&(S===b+1?A++:S>b?L>R-b?A+=S-b:A--:A=S(null!=c?1:0))for(;o>=0||a=0){if((c=t[o])&&i==c.key&&s===c.type)return o;o--}if(a2&&(c.children=arguments.length>3?o.call(arguments,2):n),I(e.type,c,r||e.key,i||e.ref,null)}function z(e,t){var n={__c:t="__cC"+h++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,O(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}o=v.slice,a={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},c=0,u=function(e){return null!=e&&void 0===e.constructor},A.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=_({},this.state),"function"==typeof e&&(e=e(_({},n),this.props)),e&&_(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),O(this))},A.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},A.prototype.render=E,l=[],p="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,t){return e.__v.__b-t.__v.__b},L.__r=0,h=0;let J=function(e){return e.API="UC_UI_API",e.FIRST_LAYER="FIRST_LAYER",e.PRIVACY_BUTTON="PRIVACY_BUTTON",e.SECOND_LAYER="SECOND_LAYER",e}({}),K=function(e){return e.CMP_SHOWN="CMP_SHOWN",e.ACCEPT_ALL="ACCEPT_ALL",e.DENY_ALL="DENY_ALL",e.SAVE="SAVE",e.COOKIE_POLICY_LINK="COOKIE_POLICY_LINK",e.IMPRINT_LINK="IMPRINT_LINK",e.MORE_INFORMATION_LINK="MORE_INFORMATION_LINK",e.PRIVACY_POLICY_LINK="PRIVACY_POLICY_LINK",e.INTEGRATIONS_LINK="INTEGRATIONS_LINK",e.CCPA_TOGGLES_ON="CCPA_TOGGLES_ON",e.CCPA_TOGGLES_OFF="CCPA_TOGGLES_OFF",e}({}),q=function(e){return e.FIRST_LAYER="FIRST_LAYER",e.NONE="NONE",e.PRIVACY_BUTTON="PRIVACY_BUTTON",e.SECOND_LAYER="SECOND_LAYER",e}({}),X=function(e){return e.ANALYTICS="UC_UI_CMP_EVENT",e.INITIALIZED="UC_UI_INITIALIZED",e.VIEW_CHANGED="UC_UI_VIEW_CHANGED",e}({}),Q=function(e){return e.SERVICE_MISSING_ID="Usercentrics: service ID is missing",e.DUPLICATED_SCRIPT="Usercentrics: duplicated script tag",e.TCF_NOT_ENABLED="Usercentrics: TCF is not enabled",e.CLIENT_CONFIG_NOT_AVAILABLE="AMP clientConfig is not available",e.INACCESSIBLE_LOCAL_STORAGE="Usercentrics: CMP is not fully functional due to inaccessible local storage",e.USE_LOADER="Usercentrics: If you're not using Content Security Policy, please use loader.js instead of bundle.js according to https://docs.usercentrics.com/#/browser-ui?id=implementation",e}({}),Z=function(e){return e.MARGIN_LEFT="margin-left:",e.MARGIN_RIGHT="margin-right:",e.PADDING_LEFT="padding-left:",e.PADDING_RIGHT="padding-right:",e.FLOAT_LEFT="float: left",e.FLOAT_RIGHT="float: right",e.FLEX_ALIGNMENT_LEFT="justify-content: flex-start",e.FLEX_ALIGNMENT_RIGHT="justify-content: flex-end",e.TEXT_ALIGNMENT_LEFT="text-align: left",e.TEXT_ALIGNMENT_RIGHT="text-align: right",e.BORDER_LEFT="border-left:",e.BORDER_RIGHT="border-right:",e.BORDER_RADIUS_TOP_LEFT="border-top-left-radius:",e.BORDER_RADIUS_TOP_RIGHT="border-top-right-radius:",e.BORDER_RADIUS_BOTTOM_LEFT="border-bottom-left-radius:",e.BORDER_RADIUS_BOTTOM_RIGHT="border-bottom-right-radius:",e.OBJECT_POSITION_RIGHT="object-position: right",e.OBJECT_POSITION_LEFT="object-position: left",e.OBJECT_POSITION_CENTER="object-position: center",e.POSITION_LEFT="left:",e.POSITION_RIGHT="right:",e}({}),ee=function(e){return e.SOLID="solid",e.NONE="none",e.DOTTED="dotted",e.DASHED="dashed",e.DOUBLE="double",e}({}),te=function(e){return e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.QUATERNARY="quaternary",e.NEUTRAL="neutral",e}({}),ne=function(e){return e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.QUATERNARY="quaternary",e}({}),re=function(e){return e.LARGE="large",e.MEDIUM="medium",e.SMALL="small",e.XSMALL="xsmall",e}({}),ie=function(e){return e.MAX_WIDTH="max-width:",e.MIN_WIDTH="min-width:",e.MAX_HEIGHT="max-height:",e.MIN_HEIGHT="min-height:",e}({}),se=function(e){return e.CENTER="CENTER",e.BOTTOM="BOTTOM",e.SIDE="SIDE",e.TOP="TOP",e}({}),oe=function(e){return e.CATEGORIES_PURPOSES="categories_purposes",e.SERVICES_VENDORS="services_vendors",e}({});const ae=["ar","ur","he","fa"],ce="usercentrics-root";let ue=function(e){return e.AMP_ENABLED="ampEnabled",e.AVOID_PREFETCH_SERVICES="avoidPrefetchServices",e.BLOCK_DATA_LAYER_PUSH="blockDataLayerPush",e.CONTROLLER_ID="controllerId",e.CONTROLLER_IDS="controllerIds",e.CLIENT_CONFIG="clientConfig",e.DISABLE_TRACKING="disableTracking",e.EU_MODE="euMode",e.ID="id",e.LANGUAGE="language",e.DISABLE_SERVER_CONSENTS="disableServerConsents",e.RULESET_ID="rulesetId",e.SANDBOX_ENV="sandbox",e.SETTINGS_CACHE="settingsCache",e.SETTINGS_ID="settingsId",e.STORE_SERVICE_ID_TO_NAME_MAPPING="storeServiceIdToNameMapping",e.SUPPRESS_CMP_DISPLAY="suppressCmpDisplay",e.TCF_ENABLED="tcfEnabled",e.VERSION="version",e.DEPRECATED_V1_CONSENT_SAVING_ENABLED="enableV1ConsentSaving",e}({});const le="UC_UI",de="uc_ui_version",pe="uc-tab-list",fe="uc-banner-content",he="uc-center-container",ge="uc-side-container",ve="uc-vertical-scroller",me="uc-heading-title",ye="uc-show-more",_e="language-tooltip-id";function be(){be=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var s=t&&t.prototype instanceof p?t:p,o=Object.create(s.prototype),a=new A(i||[]);return r(o,"_invoke",{value:S(e,n,a)}),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function h(){}var g={};c(g,s,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(T([])));m&&m!==t&&n.call(m,s)&&(g=m);var y=h.prototype=p.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function i(r,s,o,a){var c=l(e[r],e,s);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,o,a)}),(function(e){i("throw",e,o,a)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return i("throw",e,o,a)}))}a(c.arg)}var s;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return s=s?s.then(r,r):r()}})}function S(e,t,n){var r="suspendedStart";return function(i,s){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw s;return{value:void 0,done:!0}}for(n.method=i,n.arg=s;;){var o=n.delegate;if(o){var a=I(o,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function I(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,I(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=l(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var s=i.arg;return s?s.done?(t[e.resultName]=s.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):s:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function T(e){if(e||""===e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--i){var s=this.tryEntries[i],o=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var a=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(a&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Se(e){return Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se(e)}function Ie(e,t,n,r,i,s,o){try{var a=e[s](o),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function Ce(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var s=e.apply(t,n);function o(e){Ie(s,r,i,o,a,"next",e)}function a(e){Ie(s,r,i,o,a,"throw",e)}o(void 0)}))}}function Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ae(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function Ge(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var He=function(e,t){return He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},He(e,t)};function $e(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}He(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var je,Ye,We,ze,Je,Ke,qe,Xe,Qe,Ze,et,tt,nt,rt,it,st,ot,at=function(){return at=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function dt(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}"function"==typeof SuppressedError&&SuppressedError,function(e){e.CONSENT_RESPONSE="consent-response",e.CONSENT_UI="consent-ui"}(je||(je={})),function(e){e.ACCEPT="accept",e.REJECT="reject",e.DISMISS="dismiss",e.FULLSCREEN="enter-fullscreen",e.READY="ready"}(Ye||(Ye={})),function(e){e[e.TCF_V2=2]="TCF_V2",e[e.CCPA=3]="CCPA"}(We||(We={})),function(e){e[e.FALSE=0]="FALSE",e[e.TRUE=1]="TRUE"}(ze||(ze={})),function(e){e[e.DATA_LAYER=0]="DATA_LAYER",e[e.WINDOW_EVENT=1]="WINDOW_EVENT"}(Je||(Je={})),function(e){e[e.MAJOR=0]="MAJOR",e[e.MINOR=1]="MINOR",e[e.PATCH=2]="PATCH"}(Ke||(Ke={})),function(e){e.CALL_INIT="Usercentrics: You have to call the init method before!",e.DATA_LOCAL="Usercentrics: disableServerConsents and controllerId should not be present at the same time in the InitOptions!",e.UNKNOWN_VARIANT="Usercentrics: Unknown variant",e.NOT_CCPA="Usercentrics: CCPA was not initialized",e.NOT_DEFAULT="Usercentrics: GDPR was not initialized",e.NOT_TCF="Usercentrics: TCF was not initialized"}(qe||(qe={})),function(e){e.BANNER="BANNER",e.WALL="WALL"}(Xe||(Xe={})),function(e){e.CENTER="CENTER",e.SIDE="SIDE"}(Qe||(Qe={})),function(e){e[e.DARK=0]="DARK",e[e.LIGHT=1]="LIGHT"}(Ze||(Ze={})),function(e){e.LINK="LINK",e.BUTTON="BUTTON",e.MORE_LINK_BUTTON="MORE_LINK_BUTTON"}(et||(et={})),function(e){e.LEFT="LEFT",e.RIGHT="RIGHT"}(tt||(tt={})),function(e){e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"}(nt||(nt={})),function(e){e.ALL="ALL",e.SHORT="SHORT"}(rt||(rt={})),function(e){e.CROSS_DEVICE_DATA_NOT_AVAILABLE="Usercentrics: Cross Device Consents data is not available",e.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE="Usercentrics: Cross Device TCF data is not available",e.CROSS_DEVICE_FEATURE_DISABLED="Usercentrics: The `Cross-Device Consent Sharing` feature is not enabled. Please contact the support team in order to enable this feature for your configuration"}(it||(it={})),function(e){e.CROSS_DOMAIN_DATA_NOT_AVAILABLE="Usercentrics: Cross Domain Consents data is not available",e.CROSS_DOMAIN_TCF_DATA_NOT_AVAILABLE="Usercentrics: Cross Domain TCF data is not available",e.CROSS_DOMAIN_FEATURE_NOT_AVAILABLE="Usercentrics: Cross Domain Consent Sharing is not available.",e.CROSS_DOMAIN_LANGUAGE_NOT_AVAILABLE="Usercentrics: Cross Domain Consent language is not available",e.CROSS_DOMAIN_SET_DATA_FAILURE="Usercentrics: Unable to set Cross Domain data",e.CROSS_DOMAIN_SET_TCF_DATA_FAILURE="Usercentrics: Unable to set Cross Domain TCF data",e.CROSS_DOMAIN_IFRAME_ERROR="Usercentrics: Iframe error",e.CROSS_DOMAIN_IFRAME_NOT_FOUND="Usercentrics: Cross Domain iFrame not found",e.CROSS_DOMAIN_IFRAME_LOAD_ERROR="Usercentrics: IFrame did not load"}(st||(st={})),function(e){e.CLEAR="clear",e.GET_CROSS_DOMAIN_LANGUAGE="getCrossDomainLanguage",e.GET_CROSS_DOMAIN_SESSION_DATA="getCrossDomainSessionData",e.GET_CROSS_DOMAIN_TCF_DATA="getCrossDomainTcfData",e.GET_CROSS_DOMAIN_CCPA_DATA="getCrossDomainCcpaData",e.GET_TC_STRING="getTCString",e.PING="ping",e.SET_CROSS_DOMAIN_DATA="setCrossDomainData",e.SET_CROSS_DOMAIN_TCF_DATA="setCrossDomainTcfData",e.SET_CROSS_DOMAIN_CCPA_DATA="setCrossDomainCcpaData",e.SET_TC_STRING="setTCString"}(ot||(ot={}));var ft,ht,gt="ucMobileSdk",vt=["usercentrics-sandbox.eu","usercentrics.eu"],mt="4.33.1",yt=1,_t="1---",bt="__uspapiLocator",St=/^[1][nNyY-][nNyY-][nNyY-]$/,It="__uspapi";!function(e){e.CCPA="uc_usprivacy",e.CCPA_DATA="uc_ccpa",e.CONSENTS_BUFFER="uc_consents_buffer",e.CONSENTS_V2_BUFFER="uc_consents_v2_buffer",e.GCM_DATA="uc_gcm",e.LEGACY_SETTINGS="ucSettings",e.SERVICES="uc_services",e.SETTINGS="uc_settings",e.TCF="uc_tcf",e.USER_INTERACTION="uc_user_interaction",e.AB_TEST_VARIANT="uc_ab_variant"}(ft||(ft={})),(ht||(ht={})).USER_COUNTRY="uc_user_country";var Ct,Et,At,Tt,wt="uc-cross-domain-bridge",Ot="".concat("https://app.usercentrics.eu","/browser-sdk/").concat(mt,"/cross-domain-bridge.html"),Lt="".concat("https://app.eu.usercentrics.eu","/browser-sdk/").concat(mt,"/cross-domain-bridge.html"),Rt=function(){function e(){}return e.setDomainBridgeUri=function(t){var n="";t&&(t.crossDomainConsentSharingIFrame?n=t.crossDomainConsentSharingIFrame:t.app&&(n="".concat(t.app,"/browser-sdk/").concat(mt,"/cross-domain-bridge.html")));var r=""!==n?n:Ot,i=Lt;e.domainBridgeUri=e.useEuCdn?i:r},e.getDomainBridgeUri=function(){return e.domainBridgeUri},e.init=function(t,n){return ct(this,void 0,void 0,(function(){return ut(this,(function(r){return e.setDomainBridgeUri(n),e.setUseEuCdn((null==t?void 0:t.useEuCdn)||!1),e.setDomainBridgeUri(n),[2,this.initIFrame(e.getDomainBridgeUri(),wt)]}))}))},e.initIFrame=function(t,n){return ct(this,void 0,void 0,(function(){var r=this;return ut(this,(function(i){return[2,new Promise((function(i,s){var o=e.createIFrame(t,n);o.onload=function(){return ct(r,void 0,void 0,(function(){var r;return ut(this,(function(a){return r=setTimeout((function(){o={},s(new Error(st.CROSS_DOMAIN_IFRAME_LOAD_ERROR))}),1e3),e.queryIFrame(t,n,ot.PING).then((function(){clearTimeout(r),i(!0)})).catch((function(e){clearTimeout(r),s(e)})),[2]}))}))},o.onerror=function(){return ct(r,void 0,void 0,(function(){return ut(this,(function(e){return s(new Error(st.CROSS_DOMAIN_IFRAME_ERROR)),[2]}))}))},e.appendIFrame(o)}))]}))}))},e.setIsCrossDomainAvailable=function(t){e.crossDomainAvailable=t},e.isCookieBridgeAvailable=function(){return e.cookieBridgeAvailable},e.setIsCookieBridgeAvailable=function(t){e.cookieBridgeAvailable=t},e.isCrossDomainAvailable=function(){return e.crossDomainAvailable},e.getCrossDomainId=function(){return e.crossDomainId},e.setCrossDomainId=function(t){e.crossDomainId="".concat("uc_cross_domain_data","_").concat(t)},e.setCookieBridgeDomain=function(e,t){this.cookieBridgeDomain="".concat(e).concat(t)},e.setUseEuCdn=function(t){e.useEuCdn=t},e.createIFrame=function(t,n){e.removeIFrame(n);var r=document.createElement("iframe");return r.style.display="none",r.id=n,r.src=t,r},e.removeIFrame=function(e){var t=document.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)},e.queryIFrame=function(e,t,n,r,i){return ct(this,void 0,void 0,(function(){var s;return ut(this,(function(o){if(!(s=document.getElementById(t))||!s.id)throw new Error(st.CROSS_DOMAIN_IFRAME_NOT_FOUND);return[2,new Promise((function(t,o){var a=JSON.stringify({crossDomainId:i,method:n,payload:r}),c=new MessageChannel;c.port1.onmessage=function(e){var n=JSON.parse(e.data),r=n.success,i=n.data;r?t(i):o(e)},s&&s.contentWindow&&s.contentWindow.postMessage(a,e,[c.port2])}))]}))}))},e.appendIFrame=function(e){try{document.body?document.body.appendChild(e):document.addEventListener("DOMContentLoaded",(function(){document.body.appendChild(e)}))}catch(e){return new Error(st.CROSS_DOMAIN_IFRAME_ERROR)}return null},e.query=function(t,n){return ct(this,void 0,void 0,(function(){return ut(this,(function(r){return[2,e.queryIFrame(e.getDomainBridgeUri(),wt,t,n,e.crossDomainId)]}))}))},e.getCrossDomainLanguage=function(){return e.query(ot.GET_CROSS_DOMAIN_LANGUAGE)},e.setCrossDomainData=function(t){return ct(this,void 0,void 0,(function(){return ut(this,(function(n){return[2,e.query(ot.SET_CROSS_DOMAIN_DATA,(r=t,{consents:r.services.map((function(e){return e.history.map((function(t){return{action:t.action,consentId:"",settingsVersion:t.versions.settings,status:t.status,templateId:e.id,timestamp:"".concat(t.timestamp),updatedBy:t.type}}))})).reduce((function(e,t){return e.concat(t)}),[]).sort((function(e,t){return parseInt(e.timestamp,10)-parseInt(t.timestamp,10)})),controllerId:r.controllerId,language:r.language}))];var r}))}))},e.setCrossDomainCcpaData=function(t){return ct(this,void 0,void 0,(function(){return ut(this,(function(n){return[2,e.query(ot.SET_CROSS_DOMAIN_CCPA_DATA,t)]}))}))},e.getCrossDomainCcpaData=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(t){return[2,e.query(ot.GET_CROSS_DOMAIN_CCPA_DATA)]}))}))},e.getCrossDomainSessionData=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(t){return[2,e.query(ot.GET_CROSS_DOMAIN_SESSION_DATA)]}))}))},e.getCrossDomainTcfData=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(t){return[2,e.query(ot.GET_CROSS_DOMAIN_TCF_DATA)]}))}))},e.setCrossDomainTcfData=function(t){return ct(this,void 0,void 0,(function(){return ut(this,(function(n){return[2,e.query(ot.SET_CROSS_DOMAIN_TCF_DATA,t)]}))}))},e.clearCrossDomainStorage=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(t){return[2,e.query(ot.CLEAR)]}))}))},e.crossDomainId="",e.cookieBridgeDomain="",e.domainBridgeUri=Ot,e.useEuCdn=!1,e.cookieBridgeAvailable=!1,e.crossDomainAvailable=!1,e}(),Nt=function(){function e(){this.length=0,this.data={}}return e.prototype.updateLength=function(){this.length=Object.keys(this.data).length},e.prototype.key=function(e){var t=Object.keys(this.data)[e];return void 0===Se(t)?null:t},e.prototype.getItem=function(e){return void 0!==this.data[e]?this.data[e]:null},e.prototype.setItem=function(e,t){this.data[e]=String(t),this.updateLength()},e.prototype.removeItem=function(e){delete this.data[e],this.updateLength()},e.prototype.clear=function(){this.data={},this.updateLength()},e}();!function(e){e.COOKIE_BRIDGE_NOT_AVAILABLE="Usercentrics: Cookie bridge is not available.",e.COOKIE_BRIDGE_OPTIONS_NOT_SET="Usercentrics: Cookie bridge options are not set",e.GET_GLOBAL_TC_STRING_FAILURE="Usercentrics: Unable to get the Global TC string",e.INIT_TCF_ERROR="Usercentrics: Unable to init TCF",e.RESET_GVL_FAILURE="Usercentrics: Unable to reset Global Vendor List",e.SET_GLOBAL_TC_STRING_FAILURE="Usercentrics: Unable to set the Global TC string",e.VENDOR_REMOVED="Usercentrics: The following vendor is not part of the official vendors list anymore: ",e.TC_MODEL_UNDEFINED="Usercentrics: tcModel can not be null.",e.SELECTED_LANGUAGE_UNDEFINED="Usercentrics: Selected language can not be undefined"}(Ct||(Ct={})),function(e){e.LEGITIMATE_INTEREST="legIntPurposes",e.PURPOSES="purposes"}(Et||(Et={})),function(e){e[e.ID=0]="ID",e[e.LEGITIMATE_INTEREST=1]="LEGITIMATE_INTEREST",e[e.PURPOSES=2]="PURPOSES",e[e.SPECIAL_PURPOSES=3]="SPECIAL_PURPOSES"}(At||(At={})),function(e){e[e.FIRST_LAYER=1]="FIRST_LAYER",e[e.SECOND_LAYER=2]="SECOND_LAYER"}(Tt||(Tt={}));var Dt=function(e){switch(e){case"onAcceptAllBtnClick":case"onSpecialFunctionAcceptAllConsentTrigger":return"onAcceptAllServices";case"onDenyAllAnchorClick":case"onDenyAllBtnClick":return"onDenyAllServices";case"onNonEURegion":return"onNonEURegion";case"onInitialPageLoad":case"onCountdownFinished":default:return"onInitialPageLoad";case"onToggleCategory":case"onToggleConsent":case"onToggleSelectAll":return"onEssentialChange";case"onWindowFunctionUpdateConsent":case"bySettingsUpdate":case"onSaveBtnClick":return"onUpdateServices"}},Pt=function(e){switch(e){case"update":case"implicit":default:return"implicit";case"explicit":return"explicit"}},Ut="RAMDOM_KEY_LOCAL_STORAGE",kt=function(){function e(){this.localStorage=null,this.sessionStorage=null,this.storeServiceIdToNameMapping=!1}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.localStorage=null,e.instance.sessionStorage=null},e.prototype.setStoreServiceIdToNameMapping=function(e){this.storeServiceIdToNameMapping=e},e.prototype.getStoreServiceIdToNameMapping=function(){return this.storeServiceIdToNameMapping},e.prototype.init=function(){try{localStorage.setItem(Ut,Ut),localStorage.removeItem(Ut),this.localStorage=localStorage}catch(e){this.localStorage=new Nt}try{sessionStorage.setItem(Ut,Ut),sessionStorage.removeItem(Ut),this.sessionStorage=sessionStorage}catch(e){this.sessionStorage=new Nt}},e.appendToConsentsBuffer=function(t){var n,r=e.fetchConsentsBuffer(),i=(new Date).valueOf();r.push({consents:t,timestamp:i}),null===(n=e.getInstance().localStorage)||void 0===n||n.setItem(ft.CONSENTS_BUFFER,JSON.stringify(r))},e.appendToConsentsV2Buffer=function(t){var n,r=e.fetchConsentsV2Buffer(),i=(new Date).valueOf();r.push({consents:t,timestamp:i}),null===(n=e.getInstance().localStorage)||void 0===n||n.setItem(ft.CONSENTS_V2_BUFFER,JSON.stringify(r))},e.clearOnNewSettingsId=function(t){t!==e.fetchSettingsId()&&e.clear()},e.findBufferItem=function(t){return e.fetchConsentsBuffer().slice().find((function(e){return JSON.stringify(e.consents)===JSON.stringify(t)}))},e.findV2BufferItem=function(t){return e.fetchConsentsV2Buffer().slice().find((function(e){return JSON.stringify(e.consents)===JSON.stringify(t)}))},e.removeConsentsBufferItem=function(t){var n,r,i=e.fetchConsentsBuffer(),s=i.length+0;(i=i.filter((function(e){return JSON.stringify(e)!==JSON.stringify(t)}))).length&&i.length!==s?null===(n=e.getInstance().localStorage)||void 0===n||n.setItem(ft.CONSENTS_BUFFER,JSON.stringify(i)):null===(r=e.getInstance().localStorage)||void 0===r||r.removeItem(ft.CONSENTS_BUFFER)},e.removeConsentsV2BufferItem=function(t){var n,r,i=e.fetchConsentsV2Buffer(),s=i.length+0;(i=i.filter((function(e){return JSON.stringify(e)!==JSON.stringify(t)}))).length&&i.length!==s?null===(n=e.getInstance().localStorage)||void 0===n||n.setItem(ft.CONSENTS_V2_BUFFER,JSON.stringify(i)):null===(r=e.getInstance().localStorage)||void 0===r||r.removeItem(ft.CONSENTS_V2_BUFFER)},e.getCcpaString=function(){var t,n=null===(t=e.getInstance().localStorage)||void 0===t?void 0:t.getItem(ft.CCPA);return n&&St.test(n)?n:_t},e.getCcpaData=function(){var t,n=null===(t=e.getInstance().localStorage)||void 0===t?void 0:t.getItem(ft.CCPA_DATA);return n?JSON.parse(n):null},e.fetchConsentsBuffer=function(){var t,n=null===(t=e.getInstance().localStorage)||void 0===t?void 0:t.getItem(ft.CONSENTS_BUFFER);return n?JSON.parse(n):[]},e.fetchConsentsV2Buffer=function(){var t,n=null===(t=e.getInstance().localStorage)||void 0===t?void 0:t.getItem(ft.CONSENTS_V2_BUFFER);return n?JSON.parse(n):[]},e.fetchControllerId=function(){var t=e.fetchSettings();return t?t.controllerId:""},e.fetchLanguage=function(){var t=e.fetchSettings();return t?t.language:""},e.fetchServices=function(){var t=e.fetchSettings();return t?t.services:[]},e.fetchLegacySettings=function(){var t,n=null===(t=e.getInstance().localStorage)||void 0===t?void 0:t.getItem(ft.LEGACY_SETTINGS);return n?JSON.parse(n):null},e.fetchSettings=function(){var t,n=null===(t=e.getInstance().localStorage)||void 0===t?void 0:t.getItem(ft.SETTINGS);return n?JSON.parse(n):{}},e.fetchSettingsId=function(){var t=e.fetchSettings();return t?t.id:""},e.fetchSettingsVersion=function(){var t=e.fetchSettings();return t?t.version:""},e.fetchTCFData=function(){var t,n=null===(t=e.getInstance().localStorage)||void 0===t?void 0:t.getItem(ft.TCF),r=n?JSON.parse(n):{acString:"",tcString:"",timestamp:Date.now(),vendors:[]};return r.vendors||(r.vendors=[]),r},e.fetchTCFVendorsDisclosedObject=function(t){var n,r=e.fetchTCFData(),i=r.acString,s=r.tcString,o=r.vendors,a=r.vendorsDisclosed;if(!o&&!a)return{};if((a||!a&&!o.length&&s)&&t){var c=Object.keys(t).map(Number);n=(a||c).filter((function(e){return t[e]})).map((function(e){var n=t[e];return[n.id,n.legIntPurposes,n.purposes,n.specialPurposes]})),e.saveTCFData({acString:i,tcString:s,timestamp:Date.now(),vendors:n})}else n=o;return n.reduce((function(e,t){var n;return at(at({},e),((n={})[t[At.ID]]=!0,n))}),{})},e.fetchTCString=function(){return e.fetchTCFData().tcString||""},e.fetchACString=function(){return e.fetchTCFData().acString||""},e.fetchUserActionPerformed=function(){var t;return"true"===(null===(t=e.getInstance().localStorage)||void 0===t?void 0:t.getItem(ft.USER_INTERACTION))},e.fetchUserCountryResponse=function(){var t;try{return JSON.parse((null===(t=e.getInstance().sessionStorage)||void 0===t?void 0:t.getItem(ht.USER_COUNTRY))||"null")}catch(e){return null}},e.setUserCountryResponse=function(t){var n;null===(n=e.getInstance().sessionStorage)||void 0===n||n.setItem(ht.USER_COUNTRY,JSON.stringify(t))},e.mapServices=function(e){return e.map((function(e){return{history:e.consent.history,id:e.id,processorId:e.processorId,status:e.consent.status}}))},e.mapSettings=function(t,n){return{controllerId:t.controllerId,id:t.id,language:t.selectedLanguage,services:e.mapServices(n),version:t.version}},e.migrateLegacySettings=function(t){if(!e.settingsExist()){var n,r,i=e.fetchLegacySettings();if(e.clearLegacySettings(),null==i?void 0:i[t]){var s=(n=i[t])&&Bt(n.ucConsents.consents)?((r={})[ft.SETTINGS]={controllerId:n.ucConsents.consents[0].controllerId,id:n.usercentrics.settings.settingsId,language:n.usercentrics.settings.language,services:n.ucConsents.consents.map((function(e){return{history:e.history.map((function(e){return{action:Dt(e.action),language:e.language,status:e.consentStatus,timestamp:e.updatedAt,type:Pt(e.updatedBy),versions:{application:e.appVersion,service:e.consentTemplateVersion,settings:e.settingsVersion}}})),id:e.templateId,processorId:e.processorId,status:e.consentStatus}})),version:n.usercentrics.settings.version},r[ft.USER_INTERACTION]=n.usercentrics.firstUserInteraction.stateSaved,r):null;s&&(e.saveSettings(s[ft.SETTINGS]),s[ft.USER_INTERACTION]&&e.setUserActionPerformed(!0))}}},e.saveSettings=function(t,n){var r,i;if(null===(r=e.getInstance().localStorage)||void 0===r||r.setItem(ft.SETTINGS,JSON.stringify(t)),e.getInstance().getStoreServiceIdToNameMapping()&&n&&n.length){var s=n.reduce((function(e,t){return e[t.id]=t.name,e}),{});null===(i=e.getInstance().localStorage)||void 0===i||i.setItem(ft.SERVICES,JSON.stringify(s))}Rt.isCrossDomainAvailable()&&Rt.setCrossDomainData(t).catch((function(){console.warn(st.CROSS_DOMAIN_SET_DATA_FAILURE)}))},e.saveTCFData=function(t){var n;null===(n=e.getInstance().localStorage)||void 0===n||n.setItem(ft.TCF,JSON.stringify(t)),Rt.isCrossDomainAvailable()&&Rt.setCrossDomainTcfData(t).catch((function(){console.warn(st.CROSS_DOMAIN_SET_TCF_DATA_FAILURE)}))},e.fetchGcmData=function(){var t,n=null===(t=e.getInstance().localStorage)||void 0===t?void 0:t.getItem(ft.GCM_DATA);return n?JSON.parse(n):null},e.saveGcmData=function(t){var n;null===(n=e.getInstance().localStorage)||void 0===n||n.setItem(ft.GCM_DATA,JSON.stringify(t))},e.saveTCString=function(t){var n=e.fetchTCFData();this.saveTCFData(at(at({},n),{tcString:t}))},e.setCcpaTimeStamp=function(t){var n,r=t||{ccpaString:this.getCcpaString()||"",timestamp:(new Date).getTime()};null===(n=e.getInstance().localStorage)||void 0===n||n.setItem(ft.CCPA_DATA,JSON.stringify(r))},e.getCcpaTimeStamp=function(){var e=this.getCcpaData();return e&&e.timestamp?e.timestamp:(new Date).getTime()},e.setCcpaString=function(t){var n;null===(n=e.getInstance().localStorage)||void 0===n||n.setItem(ft.CCPA,t),this.setCcpaTimeStamp()},e.settingsExist=function(){return Mt(e.fetchSettings())},e.setUserActionPerformed=function(t){var n;null===(n=e.getInstance().localStorage)||void 0===n||n.setItem(ft.USER_INTERACTION,JSON.stringify(t))},e.clearCcpa=function(){var t;this.clearCcpaData(),null===(t=e.getInstance().localStorage)||void 0===t||t.removeItem(ft.CCPA)},e.clearCcpaData=function(){var t;null===(t=e.getInstance().localStorage)||void 0===t||t.removeItem(ft.CCPA_DATA)},e.clearTcf=function(){var t;null===(t=e.getInstance().localStorage)||void 0===t||t.removeItem(ft.TCF)},e.clearGcm=function(){var t;null===(t=e.getInstance().localStorage)||void 0===t||t.removeItem(ft.GCM_DATA)},e.clear=function(){var t,n;e.clearCcpa(),e.clearTcf(),e.clearGcm(),null===(t=e.getInstance().localStorage)||void 0===t||t.removeItem(ft.SETTINGS),null===(n=e.getInstance().localStorage)||void 0===n||n.removeItem(ft.USER_INTERACTION)},e.clearAll=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(e){switch(e.label){case 0:return this.clear(),Rt.isCrossDomainAvailable()?[4,Rt.clearCrossDomainStorage()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.fetchAbTestVariant=function(t){var n,r,i=(null===(n=e.getInstance().localStorage)||void 0===n?void 0:n.getItem(ft.AB_TEST_VARIANT))||"";if(t.includes(i))return i;var s=t[Math.floor(Math.random()*t.length)];return null===(r=e.getInstance().localStorage)||void 0===r||r.setItem(ft.AB_TEST_VARIANT,s),s},e.clearLegacySettings=function(){var t;null===(t=e.getInstance().localStorage)||void 0===t||t.removeItem(ft.LEGACY_SETTINGS)},e}(),Vt=function(e,t){return-1!==e.indexOf(t)},xt=function(){return"SDK-".concat(mt)},Ft=function(){return parseInt("3",10)},Bt=function(e){return Array.isArray(e)&&e.length>0},Mt=function(e){return"object"===Se(e)&&null!==e&&Object.keys(e).length>0},Gt=function(e,t){if(void 0===t)throw new Error("altElement of nullishOperation can not be undefined");return null!=e?e:t},Ht=function(e,t,n,r,i,s){return{applicationVersion:xt(),consent:{action:n,status:t.consent.status,type:r},service:{categorySlug:i||"",id:t.id,name:t.name,processorId:t.processorId,version:t.version},settings:{controllerId:e.controllerId,id:e.id,language:e.selectedLanguage,referrerControllerId:Gt(null==s?void 0:s.referrerControllerId,""),version:e.version},timestamp:Gt(null==s?void 0:s.timestamp,(new Date).valueOf())}},$t=function(e){var t=e.dataTransferSettings,n=e.services,r=void 0===n?[]:n,i=e.consentAction,s=e.consentString,o=e.isCcpa,a=e.isTcf,c=e.isAnalyticsEnabled,u=e.isConsentXDeviceEnabled,l=r.map((function(e){return{consentStatus:e.consent.status,consentTemplateId:e.id,consentTemplateVersion:e.version}})),d="",p="",f="";if(a){var h=kt.fetchTCFData(),g=h.acString,v=h.tcString,m=h.timestamp,y=h.vendors,_=h.vendorsDisclosed;p=Gt(p?null==s?void 0:s.TCF2:v,""),f=JSON.stringify({timestamp:m,vendors:y,vendorsDisclosed:_}),g&&(d=g)}else o&&(p=Gt(null==s?void 0:s.CCPA,""));return at(at(at(at(at({action:i,analytics:Gt(c,!1),appVersion:xt().replace("SDK-","")},f&&{consentMeta:f}),{consents:l}),p&&{consentString:p}),d&&{acString:d}),{controllerId:t.controllerId,language:t.selectedLanguage,settingsId:t.id,settingsVersion:t.version,xdevice:Gt(u,!1)})},jt=function(e,t){return e.reduce((function(e,n){var r=t[n];if(!(null==r?void 0:r.name))return e;var i=r.name;return dt(dt([],lt(e),!1),[{id:n,name:i}],!1)}),[])};function Yt(e){return dt([],lt(new Set(e)),!1)}var Wt,zt,Jt,Kt,qt,Xt,Qt,Zt,en,tn,nn=function(e){return e&&"object"===Se(e)},rn=function e(t,n,r){void 0===r&&(r=!1);var i=at({},n);if(!nn(i))throw new Error("Source param should be an object");return nn(t)?(Object.keys(t).forEach((function(n){var s,o,a,c,u,l=t[n],d=i[n];void 0!==d&&(i=Array.isArray(l)&&Array.isArray(d)?at(at({},i),r?((s={})[n]=(u=l.concat(d)).filter((function(e,t){return u.indexOf(e)===t})),s):((o={})[n]=l,o)):nn(l)&&nn(d)?at(at({},i),((a={})[n]=e(at({},l),d),a)):at(at({},i),((c={})[n]=l,c)))})),i):i},sn=function(e,t,n,r){return void 0===n&&(n=2e4),void 0===r&&(r=5),new Promise((function(i,s){var o=setInterval((function(){e()&&(clearTimeout(a),clearInterval(o),i())}),r),a=setTimeout((function(){clearTimeout(a),clearInterval(o),s(new Error(t))}),n)}))},on=function(e,t){for(var n=e.split("."),r=t.split("."),i=Math.min(n.length,r.length),s=0;sa?1:-1}return r.length-n.length};!function(e){e[e.COOKIE=0]="COOKIE",e[e.WEB=1]="WEB",e[e.APP=2]="APP"}(Wt||(Wt={})),function(e){e.LEFT="LEFT",e.CENTER="CENTER",e.RIGHT="RIGHT"}(zt||(zt={})),function(e){e.CAT="CAT",e.SRV="SRV"}(Jt||(Jt={})),function(e){e.AVAILABLE_LANGUAGES_NOT_FOUND="Unable to find available languages using given settingsId and version.",e.FETCH_ACM_VENDORS="Something went wrong while fetching the atp vendors.",e.FETCH_AVAILABLE_LANGUAGES="Something went wrong while fetching the available languages.",e.FETCH_DATA_PROCESSING_SERVICES="Something went wrong while fetching the data processing services.",e.FETCH_LEGAL_BASIS="Something went wrong while fetching the legal data translations.",e.FETCH_SETTINGS="Something went wrong while fetching the settings.",e.FETCH_USER_CONSENTS="Something went wrong while fetching the user's consents.",e.FETCH_USER_COUNTRY="Something went wrong while fetching the user's country.",e.FETCH_USER_TCF_DATA="Something went wrong while fetching the user's tcf data.",e.GENERATE_DATA_PROCESSING_SERVICES="Something went wrong while generating the data processing services.",e.RULESET_NOT_FOUND="Config Map not found!",e.TAGLOGGER="Tag logger API is being called just before browser unload, some browsers like firefox cancel the api call and throw the error.",e.SAVE_CONSENTS="Something went wrong while saving user consents.",e.SAVE_CONSENTS_RETRY="Number of retries exceeded for saving user consents.",e.SETTINGS_NOT_FOUND="Unable to find settings using given settingsId and version.",e.CUSTOM_REFERRER_NOT_VALID="A custom referrer was passed to setTrackingPixel but it is not a valid URL. Origin and pathname will be passed instead."}(Kt||(Kt={})),function(e){e.US_CA_ONLY="US_CA_ONLY",e.US="US"}(qt||(qt={})),function(e){e[e.FIRST_LAYER=1]="FIRST_LAYER",e[e.SECOND_LAYER=3]="SECOND_LAYER"}(Xt||(Xt={})),function(e){e[e.DATA_LAYER=1]="DATA_LAYER",e[e.WINDOW_EVENT=4]="WINDOW_EVENT"}(Qt||(Qt={})),function(e){e.DATA_COLLECTED_LIST="dataCollectedList",e.DATA_PURPOSES_LIST="dataPurposesList",e.DATA_RECIPIENTS_LIST="dataRecipientsList",e.TECHNOLOGY_USED="technologyUsed"}(Zt||(Zt={})),function(e){e.MAJOR="major",e.MINOR="minor",e.PATCH="patch"}(en||(en={})),function(e){e.ICON="ICON",e.LINK="LINK"}(tn||(tn={}));var an,cn=function(e,t){return"boolean"==typeof e?e:t},un=function(e){if(!e)return null;var t=e.startsWith("#")?e:"#".concat(e);return ln(t)?t:"#0045A5"},ln=function(e){return!(""===e||!e)&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(e)},dn=function(e){if(null!=e.firstLayer.isOverlayEnabled)return e.firstLayer.isOverlayEnabled;var t=e.backgroundOverlay.find((function(e){var t;return(null===(t=e.target)||void 0===t?void 0:t[0])===Xt.FIRST_LAYER}));return!!t&&(null==t?void 0:t.darken)>0},pn=function(e){if(null!=e.secondLayer.isOverlayEnabled)return e.secondLayer.isOverlayEnabled;var t=e.backgroundOverlay.find((function(e){var t;return(null===(t=e.target)||void 0===t?void 0:t[0])===Xt.SECOND_LAYER}));return!!t&&(null==t?void 0:t.darken)>0},fn=function(e){return"number"==typeof e||"string"==typeof e&&!e.includes("px")?"".concat(e,"px"):e},hn=function(e){switch(e){case zt.CENTER:return"center";case zt.RIGHT:return"right";case zt.LEFT:default:return"left"}},gn={description:"",id:"",legalBasis:[],name:""},vn=function(e,t){return e.reduce((function(e,n){var r=t.find((function(e){return e.id===n.id}));return r?dt(dt([],lt(e),!1),[{categorySlug:n.categorySlug,consent:n.consent,id:n.id,language:n.language,name:r.name,processorId:n.processorId,version:n.version}],!1):dt([],lt(e),!1)}),[])},mn=function e(t,n){return t.map((function(t){var r=n.find((function(e){return e.id===t.id}));return at(at(at({},t),r||gn),{description:t.description||(null==r?void 0:r.description)||gn.description,id:t.id,subServices:e(t.subServices,n)})}))},yn=function(e){return null!=e&&null!=e.region},_n=function(e){return null!=e&&null!=e.changedPurposes},bn=function(e){var t;return null!=e&&null!=(null===(t=e.buttons)||void 0===t?void 0:t.optOutNotice)},Sn=function(e){return null!=e&&null!=e.vendor},In=function(e){var t;return null!=e&&null!=(null===(t=e.buttons)||void 0===t?void 0:t.showSecondLayer)},Cn=function(e){return null!=e&&null!=e.privacyButton},En=function(e){return null!=e&&(bn(e)||In(e)||Sn(e))},An=function(e){var t,n;return null!=e&&null!=(null===(t=e.firstLayer)||void 0===t?void 0:t.showShortDescriptionOnMobile)&&null==(null===(n=e.firstLayer)||void 0===n?void 0:n.isCategoryTogglesEnabled)},Tn=function(e){var t;return null!=e&&null!=(null===(t=e.firstLayer)||void 0===t?void 0:t.hideNonIabPurposes)},wn=function(e){var t;return null!=e&&null!=(null===(t=e.firstLayer)||void 0===t?void 0:t.isCategoryTogglesEnabled)},On=function(e){return null!=e&&!An(e)&&!wn(e)&&!Tn(e)},Ln={acceptAllButton:"Accept All",ccpaButton:"Agree to CCPA",ccpaMoreInformation:"More Information",closeButton:"Close Second Layer",collapse:"Collapse",cookiePolicyButton:"Open Cookie Policy",copyControllerId:"Copy Controller ID",denyAllButton:"Deny all",expand:"Expand",fullscreenButton:"Enter full screen",imprintButton:"Open Imprint",languageSelector:"Select language",privacyButton:"Open",privacyPolicyButton:"Open Privacy Policy",saveButton:"Save",serviceInCategoryDetails:"View Service details",servicesInCategory:"List of Services in this category",tabButton:"Tab",usercentricsCard:"Card",usercentricsCMPButtons:"Footer including buttons",usercentricsCMPContent:"Content",usercentricsCMPHeader:"Header including language selection and external links",usercentricsCMPUI:"Consent Management Platform Interface",usercentricsList:"List",vendorConsentToggle:"Consent",vendorDetailedStorageInformation:"Detailed Storage Information",vendorLegIntToggle:"Legitimate Interest"},Rn="https://www.usercentrics.com/consent-management-platform-powered-by-usercentrics/",Nn=function(){function e(){this.ampEnabled=!1}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.ampEnabled=!1},e.prototype.isAmpEnabled=function(){return this.ampEnabled},e.prototype.setIsAmpEnabled=function(e){this.ampEnabled=e},e}(),Dn="latest",Pn={EU_URI:{AGGREGATOR:"https://aggregator.eu.usercentrics.eu/aggregate/",CDN:"https://config.eu.usercentrics.eu",FETCH_CONSENTS:"https://consents.eu.usercentrics.eu/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.eu1.usercentrics.eu",FETCH_TCF_DATA:"https://consents.eu.usercentrics.eu/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://consents.eu.usercentrics.eu/consentState",GRAPHQL:"https://api.eu.usercentrics.eu/graphql",SAVE_CONSENTS_V2:"https://consent-api.service.consent.eu1.usercentrics.eu/consent",TRACK_EVENT:"https://uct.eu.usercentrics.eu/uct",TRACK_SESSION:"https://app.eu.usercentrics.eu/session/1px.png"},FOLDER:{RULESET:"ruleSet",SETTINGS:"settings",TEMPLATES:"consent-templates",TRANSLATIONS:"translations"},URI:{AGGREGATOR:"https://aggregator.service.usercentrics.eu/aggregate/",CDN:"https://api.usercentrics.eu",FETCH_CONSENTS:"https://consents.usercentrics.eu/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.usercentrics.eu",FETCH_TCF_DATA:"https://consents.usercentrics.eu/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://consents.usercentrics.eu/consentState",GRAPHQL:"https://graphql.usercentrics.eu/graphql",RULESET:"https://api.usercentrics.eu",SAVE_CONSENTS_V2:"https://consent-api.service.consent.usercentrics.eu/consent",TRACK_EVENT:"https://uct.service.usercentrics.eu/uct",TRACK_SESSION:"https://app.usercentrics.eu/session/1px.png"}},Un={EU_URI:{AGGREGATOR:"https://aggregator.service.usercentrics-sandbox.eu/aggregate/",CDN:"https://api.usercentrics-sandbox.eu",FETCH_CONSENTS:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.eu1.usercentrics-staging.eu",FETCH_TCF_DATA:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentState",GRAPHQL:"https://api-v2-sandbox-consent-dot-usercentrics-playground.nw.r.appspot.com/",SAVE_CONSENTS_V2:"https://consent-api.service.consent.eu1.usercentrics-staging.eu/consent",TRACK_EVENT:"https://uct.eu.usercentrics.eu/uct",TRACK_SESSION:"https://app.usercentrics-sandbox.eu/session/1px.png"},FOLDER:{RULESET:"ruleSet",SETTINGS:"settings",TEMPLATES:"consent-templates",TRANSLATIONS:"translations"},URI:{AGGREGATOR:"https://aggregator.service.usercentrics-sandbox.eu/aggregate/",CDN:"https://api.usercentrics-sandbox.eu",FETCH_CONSENTS:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.usercentrics-staging.eu",FETCH_TCF_DATA:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentState",GRAPHQL:"https://api-v2-sandbox-consent-dot-usercentrics-playground.nw.r.appspot.com/",RULESET:"https://api.usercentrics-sandbox.eu",SAVE_CONSENTS_V2:"https://consent-api.service.consent.usercentrics-staging.eu/consent",TRACK_EVENT:"https://uct.service.usercentrics.eu/uct",TRACK_SESSION:"https://app.usercentrics-sandbox.eu/session/1px.png"}},kn=["onEssentialChange","onInitialPageLoad","onNonEURegion"],Vn=["onSessionRestored","onMobileSessionRestore"],xn=function(e,t,n){return ct(void 0,void 0,void 0,(function(){return ut(this,(function(r){return[2,Bn(e,t,null,n)]}))}))},Fn=function(e,t,n,r){return ct(void 0,void 0,void 0,(function(){return ut(this,(function(i){return[2,Bn(e,n,t,r)]}))}))},Bn=function(e,t,n,r){return ct(void 0,void 0,void 0,(function(){var i,s;return ut(this,(function(o){return i={"content-type":"application/json"},s=at(at({},r),{headers:i,method:n?"POST":"GET"}),n&&(s.body=JSON.stringify(n)),(null==r?void 0:r.headers)&&(s.headers=at(at({},i),r.headers)),[2,fetch(e,s).then((function(e){return ct(void 0,void 0,void 0,(function(){return ut(this,(function(n){if(e.ok)return[2,Gn(e)];throw Mn(t,e.status)}))}))}))]}))}))},Mn=function(e,t){return{errorMessage:e,statusCode:t}},Gn=function(e){return ct(void 0,void 0,void 0,(function(){return ut(this,(function(t){switch(t.label){case 0:return[4,Hn(e)];case 1:return[2,{data:t.sent(),location:e.headers.get("x-client-geo-location"),statusCode:e.status}]}}))}))},Hn=function(e){return ct(void 0,void 0,void 0,(function(){var t,n;return ut(this,(function(r){switch(r.label){case 0:return[4,e.text()];case 1:return t=r.sent(),[2,(n=""===t?{}:JSON.parse(t)).data||n]}}))}))};!function(e){e[e.RESOURCE_NOT_FOUND=403]="RESOURCE_NOT_FOUND"}(an||(an={}));var $n,jn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Yn={exports:{}},Wn={exports:{}};Wn.exports=($n=$n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==jn&&jn.crypto&&(n=jn.crypto),!n)try{n=require("crypto")}catch(e){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},o=s.lib={},a=o.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=o.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var s=0;s>>2]>>>24-s%4*8&255;t[r+s>>>2]|=o<<24-(r+s)%4*8}else for(var a=0;a>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((s>>>4).toString(16)),r.push((15&s).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},d=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,s=r.sigBytes,o=this.blockSize,a=s/(4*o),u=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*o,l=e.min(4*u,s);if(u){for(var d=0;d>>7)^(h<<14|h>>>18)^h>>>3,v=u[f-2],m=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[f]=g+u[f-7]+m+u[f-16]}var y=r&i^r&s^i&s,_=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=p+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&d)+c[f]+u[f];p=d,d=l,l=a,a=o+b|0,o=s,s=i,i=r,r=b+(_+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+s|0,n[3]=n[3]+o|0,n[4]=n[4]+a|0,n[5]=n[5]+l|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=s._createHelper(l),n.HmacSHA256=s._createHmacHelper(l)}(Math),e.SHA256}(Wn.exports);var zn,Jn=Yn.exports,Kn=new Uint8Array(16);function qn(){if(!zn&&!(zn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return zn(Kn)}for(var Xn=[],Qn=0;Qn<256;++Qn)Xn.push((Qn+256).toString(16).slice(1));var Zn={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function er(e,t,n){if(Zn.randomUUID&&!t&&!e)return Zn.randomUUID();var r=(e=e||{}).random||(e.rng||qn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(Xn[e[t+0]]+Xn[e[t+1]]+Xn[e[t+2]]+Xn[e[t+3]]+"-"+Xn[e[t+4]]+Xn[e[t+5]]+"-"+Xn[e[t+6]]+Xn[e[t+7]]+"-"+Xn[e[t+8]]+Xn[e[t+9]]+"-"+Xn[e[t+10]]+Xn[e[t+11]]+Xn[e[t+12]]+Xn[e[t+13]]+Xn[e[t+14]]+Xn[e[t+15]]).toLowerCase()}(r)}var tr=function(){function e(){this.needsSessionRestore=!1,this.controllerId=""}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.controllerId=""},Object.defineProperty(e.prototype,"value",{get:function(){return this.controllerId},set:function(e){this.controllerId=e},enumerable:!1,configurable:!0}),e.prototype.setControllerIdByResolvedSettingsId=function(e,t){var n=t.find((function(t){var n=t.settingsId;return e===n}));n&&(this.value=n.controllerId)},e.prototype.setNeedSessionRestore=function(){this.needsSessionRestore=""!==this.controllerId},e.prototype.init=function(){if(""===this.controllerId){var e=this.getStorageControllerId();this.controllerId=e||this.generateControllerId()}},e.prototype.generateControllerId=function(){return"".concat(Jn(er()))},e.prototype.getStorageControllerId=function(){return kt.fetchControllerId()},e}(),nr=["AT","BE","BG","CY","CZ","DE","DK","EE","ES","FI","FR","GR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"],rr=function(){function e(){this.userCountryData={},this.convertUserCountryString=function(e){var t=null==e?void 0:e.split(","),n=t&&t[0]?t[0]:"DE";return{countryCode:n,countryName:n||"Germany (default)",regionCode:t&&t[1]&&t[1].length>=3?t[1].substring(2):""}}}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.userCountryData={}},e.prototype.setUserCountryData=function(e){this.userCountryData=e},e.prototype.getUserCountryData=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(e){return[2,this.userCountryData]}))}))},e.prototype.getIsUserInCalifornia=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(e){return[2,this.getIsUserInUS("CA")]}))}))},e.prototype.getIsUserInEU=function(){return ct(this,void 0,void 0,(function(){var e;return ut(this,(function(t){switch(t.label){case 0:return[4,this.getUserCountryData()];case 1:return e=t.sent(),[2,Vt(nr,e.code.toUpperCase())]}}))}))},e.prototype.getIsUserInUS=function(e){return ct(this,void 0,void 0,(function(){var t;return ut(this,(function(n){switch(n.label){case 0:return[4,this.getUserCountryData()];case 1:return[2,"US"===(t=n.sent()).code&&(!e||t.regionCode===e)]}}))}))},e.prototype.resolveLocation=function(t){return ct(this,void 0,void 0,(function(){var n,r;return ut(this,(function(i){switch(i.label){case 0:return n=this.convertUserCountryString(t),[4,e.getInstance().getUserCountryData()];case 1:return r=i.sent(),Mt(r)||(kt.setUserCountryResponse(n),this.setUserCountryData({code:n.countryCode,name:n.countryName,regionCode:n.regionCode})),[2]}}))}))},e.mapUserCountryData=function(e){return{countryCode:e.code,countryName:e.name,regionCode:e.regionCode}},e}(),ir={numOfAttempts:7,onFirstFail:function(){},onFirstRetriedSuccess:function(){},startingDelay:100,timeMultiple:2};function sr(e,t){return void 0===t&&(t={}),ct(this,void 0,void 0,(function(){var n;return ut(this,(function(r){switch(r.label){case 0:return n=function(e){var t=at(at({},ir),e);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}(t),[4,new ar(e,n).execute()];case 1:return[2,r.sent()]}}))}))}var or,ar=function(){function e(e,t){this.request=e,this.options=t,this.attemptNumber=0}return e.prototype.execute=function(){return ct(this,void 0,void 0,(function(){var e,t;return ut(this,(function(n){switch(n.label){case 0:if(this.attemptLimitReached)return[3,7];n.label=1;case 1:return n.trys.push([1,5,,6]),this.attemptNumber?[4,this.wait(this.delay)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[4,this.request()];case 4:return e=n.sent(),this.attemptNumber&&this.options.onFirstRetriedSuccess(),[2,e];case 5:if(t=n.sent(),this.attemptNumber||this.options.onFirstFail(),this.attemptNumber+=1,this.attemptLimitReached)throw t;return[3,6];case 6:return[3,0];case 7:throw new Error("Something went wrong.")}}))}))},Object.defineProperty(e.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!1,configurable:!0}),e.prototype.wait=function(e){return new Promise((function(t){return setTimeout(t,e)}))},Object.defineProperty(e.prototype,"delay",{get:function(){var e=this.options.startingDelay,t=this.options.timeMultiple,n=this.attemptNumber;return e*Math.pow(t,n)},enumerable:!1,configurable:!0}),e}(),cr=function(e,t){return{id:e,version:t}},ur=function(e){if(!e)return[];var t,n,r=e.reduce((function(e,t){return dt(dt([],lt(e),!1),[cr(t.templateId,t.version)],!1)}),[]);return function(e,t){return e.sort((function(e,t){return e.id>t.id?1:-1}))}((t=function(e,t){return e.id===t.id&&e.version===t.version},n=[],r.forEach((function(e){-1===n.findIndex((function(n){return t(e,n)}))&&n.push(e)})),n))},lr=function(){function e(){this.API=Pn,this.abTestVariant="",this.controllerIdInstance=tr.getInstance(),this.jsonCacheBustingString="",this.jsonFileLanguage="",this.jsonFileVersion=Dn,this.settingsId="",this.rulesetId="",this.useEuCdn=!1,this.disableServerConsents=!1,this.aggregatedServicesCache=null,this.translationsCache=null}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.jsonCacheBustingString="",e.instance.jsonFileLanguage="",e.instance.jsonFileVersion=Dn,e.instance.settingsId="",e.instance.disableServerConsents=!1},e.prototype.resetAggregatedServicesCache=function(){this.aggregatedServicesCache=null},e.prototype.resetTranslationsCache=function(){this.translationsCache=null},e.prototype.getAbTestVariant=function(){return this.abTestVariant},e.prototype.getJsonFileLanguage=function(){return this.jsonFileLanguage},e.prototype.getJsonFileVersion=function(){return this.jsonFileVersion},e.prototype.getSettingsId=function(){return this.settingsId},e.prototype.getRulesetId=function(){return this.rulesetId},e.prototype.getDisableServerConsents=function(){return this.disableServerConsents},e.prototype.setJsonCacheBustingString=function(e){this.jsonCacheBustingString=e},e.prototype.setJsonFileLanguage=function(e){this.jsonFileLanguage=e},e.prototype.setJsonFileVersion=function(e){this.jsonFileVersion=e},e.prototype.setDisableServerConsents=function(e){this.disableServerConsents=e},e.prototype.setDomains=function(e,t){this.API=e?Un:t?{EU_URI:{AGGREGATOR:Pn.EU_URI.AGGREGATOR,CDN:Pn.EU_URI.CDN,FETCH_CONSENTS:Pn.EU_URI.FETCH_CONSENTS,FETCH_CONSENTS_V2:Pn.EU_URI.FETCH_CONSENTS_V2,FETCH_TCF_DATA:Pn.EU_URI.FETCH_TCF_DATA,FETCH_TCF_DATA_V2:Pn.EU_URI.FETCH_TCF_DATA_V2,GRAPHQL:Pn.EU_URI.GRAPHQL,SAVE_CONSENTS_V2:Pn.EU_URI.SAVE_CONSENTS_V2,TRACK_EVENT:Pn.EU_URI.TRACK_EVENT,TRACK_SESSION:Pn.EU_URI.TRACK_SESSION},FOLDER:{RULESET:"configMap",SETTINGS:"settings",TEMPLATES:"consent-templates",TRANSLATIONS:"translations"},URI:at(at({AGGREGATOR:""!==t.aggregator?"".concat(t.aggregator,"/aggregate/"):Pn.URI.AGGREGATOR,CDN:""!==t.cdn?t.cdn:Pn.URI.CDN,RULESET:Pn.URI.RULESET},""!==t.consents?{FETCH_CONSENTS:"".concat(t.consents,"/consentsHistory"),FETCH_CONSENTS_V2:"".concat(t.consents),FETCH_TCF_DATA:"".concat(t.consents,"/consentsHistoryTCF"),FETCH_TCF_DATA_V2:"".concat(t.consents,"/consentState")}:{FETCH_CONSENTS:Pn.URI.FETCH_CONSENTS,FETCH_CONSENTS_V2:Pn.URI.FETCH_CONSENTS_V2,FETCH_TCF_DATA:Pn.URI.FETCH_TCF_DATA,FETCH_TCF_DATA_V2:Pn.URI.FETCH_TCF_DATA_V2}),{GRAPHQL:""!==t.graphql?"".concat(t.graphql,"/graphql"):Pn.URI.GRAPHQL,SAVE_CONSENTS_V2:""!==t.consentsV2?"".concat(t.consentsV2,"/consent"):Pn.URI.SAVE_CONSENTS_V2,TRACK_EVENT:""!==t.trackingEvent?"".concat(t.trackingEvent,"/uct"):Pn.URI.TRACK_EVENT,TRACK_SESSION:""!==t.app?"".concat(t.app,"/session/1px.png"):Pn.URI.TRACK_SESSION})}:Pn},e.prototype.setSettingsId=function(e){this.settingsId=e},e.prototype.setRulesetId=function(e){this.rulesetId=e},e.prototype.setEuMode=function(e){this.useEuCdn=e},e.prototype.isEuMode=function(){return this.useEuCdn},e.prototype.getAggregatorUri=function(){return this.isEuMode()?this.API.EU_URI.AGGREGATOR:this.API.URI.AGGREGATOR},e.prototype.getCdnUri=function(){return this.isEuMode()?this.API.EU_URI.CDN:this.API.URI.CDN},e.prototype.getGraphQLUri=function(){return this.isEuMode()?this.API.EU_URI.GRAPHQL:this.API.URI.GRAPHQL},e.prototype.getTcfDataV2Uri=function(){return this.isEuMode()?this.API.EU_URI.FETCH_TCF_DATA_V2:this.API.URI.FETCH_TCF_DATA_V2},e.prototype.fetchAggregatedServices=function(e,t){return void 0===t&&(t=!0),ct(this,void 0,void 0,(function(){var n,r;return ut(this,(function(i){switch(i.label){case 0:return this.aggregatedServicesCache&&t?[2,this.aggregatedServicesCache]:(n="".concat(this.getAggregatorUri()).concat(this.jsonFileLanguage,"?templates=").concat(e.map((function(e){return"".concat(e.id,"@").concat(e.version)})).join(",")),[4,xn(n,Kt.GENERATE_DATA_PROCESSING_SERVICES)]);case 1:return r=i.sent(),t&&(this.aggregatedServicesCache=r.data.templates),[2,r.data.templates]}}))}))},e.prototype.fetchRuleset=function(){var e;return ct(this,void 0,void 0,(function(){var t,n,r,i;return ut(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),t=this.createRulesetUrl(),[4,xn(t,Kt.RULESET_NOT_FOUND)];case 1:return n=s.sent(),r=null===(e=n.location)||void 0===e?void 0:e.split(","),[2,{defaultRule:n.data.defaultRule,description:n.data.description,location:{code:r?r[0]:"",name:n.location||"",regionCode:r&&r[1]?r[1]:""},rules:n.data.rules}];case 2:throw(i=s.sent()).statusCode&&i.statusCode===an.RESOURCE_NOT_FOUND&&(i.errorMessage=Kt.RULESET_NOT_FOUND),i;case 3:return[2]}}))}))},e.prototype.fetchAvailableLanguages=function(){return ct(this,void 0,void 0,(function(){var e,t,n;return ut(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),e=this.createAvailableLanguagesUrl(),[4,xn(e,Kt.FETCH_AVAILABLE_LANGUAGES)];case 1:return t=r.sent(),[4,rr.getInstance().resolveLocation(t.location)];case 2:return r.sent(),[2,t.data.languagesAvailable];case 3:throw(n=r.sent()).statusCode&&n.statusCode===an.RESOURCE_NOT_FOUND&&(n.errorMessage=Kt.AVAILABLE_LANGUAGES_NOT_FOUND),n;case 4:return[2]}}))}))},e.prototype.fetchTranslations=function(){return ct(this,void 0,void 0,(function(){var e,t,n;return ut(this,(function(r){switch(r.label){case 0:if(this.translationsCache)return[2,this.translationsCache];r.label=1;case 1:return r.trys.push([1,3,,4]),e=this.createLanguagesUrl(),[4,xn(e,Kt.FETCH_LEGAL_BASIS)];case 2:return t=r.sent(),this.translationsCache=t.data,[2,t.data];case 3:return(n=r.sent()).statusCode&&n.statusCode===an.RESOURCE_NOT_FOUND&&(n.errorMessage=Kt.FETCH_LEGAL_BASIS),[2,null];case 4:return[2]}}))}))},e.prototype.mergeAbVariant=function(e){return ct(this,void 0,void 0,(function(){var t,n,r;return ut(this,(function(i){switch(i.label){case 0:if(t=JSON.parse(e.data.variants.experiments),"UC"===e.data.variants.activateWith)return n=Object.keys(t),this.abTestVariant=kt.fetchAbTestVariant(n),[2,rn(t[this.abTestVariant],e.data)];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,sn((function(){return!!window.UC_AB_VARIANT}),"window.UC_AB_VARIANT is not defined",2e3)];case 2:return i.sent(),[3,4];case 3:return r=i.sent(),console.warn(r),[3,4];case 4:return window.UC_AB_VARIANT&&t&&t[window.UC_AB_VARIANT]?(this.abTestVariant=window.UC_AB_VARIANT,[2,rn(t[window.UC_AB_VARIANT],e.data)]):[2,e.data]}}))}))},e.prototype.fetchAcmVendors=function(){return ct(this,void 0,void 0,(function(){var e;return ut(this,(function(t){switch(t.label){case 0:return e=this.createAcmVendorsJsonUrl(),[4,xn(e,Kt.FETCH_ACM_VENDORS)];case 1:return[2,t.sent().data]}}))}))},e.prototype.fetchSettingsJson=function(){return ct(this,void 0,void 0,(function(){var e,t,n;return ut(this,(function(r){switch(r.label){case 0:return r.trys.push([0,4,,5]),e=this.createSettingsJsonUrl(),[4,xn(e,Kt.FETCH_SETTINGS)];case 1:return t=r.sent(),["ccpa","firstLayer","secondLayer"].forEach((function(e){t.data[e]||(t.data[e]={})})),t.data.tcf2&&(t.data.tcf2.selectedVendorIds=(t.data.tcf2.selectedVendorIds||[]).sort((function(e,t){return e-t})),"2.2"===t.data.tcf2.version&&(t.data.tcf2.resurfaceIABLegalBasisChanged=!1)),t.data.consentTemplates&&(t.data.consentTemplates=t.data.consentTemplates.reduce((function(e,t){return t.isDeactivated||e.push(t),e}),[])),t.data.variants&&t.data.variants.enabled&&function(e,t){try{JSON.parse(e)}catch(t){return console.warn("Invalid JSON string from ".concat("A/B Testing",': "').concat(e,'"')),!1}return!0}(t.data.variants.experiments)?[4,this.mergeAbVariant(t)]:[3,3];case 2:return[2,r.sent()];case 3:return[2,t.data];case 4:throw(n=r.sent()).statusCode&&n.statusCode===an.RESOURCE_NOT_FOUND&&(n.errorMessage=Kt.SETTINGS_NOT_FOUND),n;case 5:return[2]}}))}))},e.prototype.fetchUserConsents=function(){return ct(this,void 0,void 0,(function(){var e;return ut(this,(function(t){switch(t.label){case 0:return this.getDisableServerConsents()?[3,2]:(e=this.createFetchUserConsentsUrl(),[4,xn(e,Kt.FETCH_USER_CONSENTS)]);case 1:return[2,t.sent().data.reverse()];case 2:return[2,[]]}}))}))},e.prototype.fetchUserConsentsV2=function(e,t){return ct(this,void 0,void 0,(function(){var n,r,i,s,o,a,c,u;return ut(this,(function(l){switch(l.label){case 0:return n=function(e){return dt(dt([],lt(kn),!1),lt(Vn),!1).includes(e)?"implicit":"explicit"},this.getDisableServerConsents()?[3,2]:(r=this.createFetchUserConsentsV2Url(),[4,xn(r,Kt.FETCH_USER_CONSENTS)]);case 1:return i=l.sent(),s=i.data,o=null,a=null,e&&(c=JSON.parse(s.consentMeta),o={acString:s.acString||"",tcString:s.consentString,timestamp:c.timestamp,vendors:c.vendors,vendorsDisclosed:c.vendorsDisclosed}),t&&(a={ccpaString:s.consentString,timestamp:s.timestamp||Date.now()}),u=s.consents.reduce((function(e,t){return dt(dt([],lt(e),!1),[{action:s.action,consentId:"",settingsVersion:s.settingsVersion,status:t.consentStatus,templateId:t.consentTemplateId,timestamp:s.timestamp||Date.now(),updatedBy:n(s.action)}],!1)}),[]),[2,at(at({consents:u},a&&{ccpa:a}),o&&{tcf:o})];case 2:return[2,null]}}))}))},e.prototype.fetchUserTcfData=function(){return ct(this,void 0,void 0,(function(){var e,t,n,r,i;return ut(this,(function(s){switch(s.label){case 0:return this.getDisableServerConsents()?[3,2]:(e=this.createFetchUserTcfDataUrl(),[4,xn(e,Kt.FETCH_USER_TCF_DATA)]);case 1:return t=s.sent(),n=t.data,r=n.tcString,i=n.meta,[2,at({tcString:r},JSON.parse(i)||{})];case 2:return[2,null]}}))}))},e.prototype.fetchUserTcfDataV2=function(){return ct(this,void 0,void 0,(function(){var e,t,n,r,i;return ut(this,(function(s){switch(s.label){case 0:return e=this.createFetchUserTcfDataV2Url(),[4,xn(e,Kt.FETCH_USER_TCF_DATA)];case 1:if((t=s.sent()).data&&t.data.tcf2)return n=t.data.tcf2,r=n.tcString,i=n.meta,[2,at({tcString:r},JSON.parse(i)||{})];throw new Error(Kt.FETCH_USER_TCF_DATA)}}))}))},e.prototype.saveTCFConsents=function(e,t,n,r,i,s){return ct(this,void 0,void 0,(function(){var o,a,c,u,l,d,p;return ut(this,(function(f){switch(f.label){case 0:return o={consent:{status:!0},id:"tcf2",name:"tcf2",processorId:"abcd",version:"1.0.0"},a=t.tcString,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0?t:function(e,t){return Bt(e)?e:[t]}(n,r)}(i,s):[],this.name=(null===(r=e._meta)||void 0===r?void 0:r.name)||(null==i?void 0:i.dataProcessor)||(null==i?void 0:i.dataProcessors[0])||""},Mr=function(e){function t(t,n,r,i){var s,o,a,c,u,l,d,p=this;p=e.call(this)||this;var f=t.labels;if(p.ariaLabels=(null==r?void 0:r.labelsAria)||Ln,p.categories=n.categories.map((function(e){return{description:e.description,label:e.label,slug:e.categorySlug}})),p.cookieInformation=new Vr(f,null,r),p.general={back:(null===(s=null==r?void 0:r.labels)||void 0===s?void 0:s.BACK)||"Back",consentGiven:f.accepted,consentNotGiven:f.denied,consentType:f.consentType,controllerId:(null===(o=null==r?void 0:r.labels)||void 0===o?void 0:o.CID_TITLE)||"Controller ID",copied:f.copied,copy:f.copy,date:f.date,decision:f.decision,details:(null===(a=null==r?void 0:r.labels)||void 0===a?void 0:a.DETAILS)||"Details",explicit:f.explicit,gpcSignalHonored:(null===(c=null==r?void 0:r.labels)||void 0===c?void 0:c.GPC_SIGNAL_HONORED)||f.gpcSignalHonored||"The GPC signal is honored",implicit:f.implicit,implicitNo:f.noImplicit,implicitYes:f.yesImplicit,privacyButton:f.btnChipName,showLess:f.readLess,showMore:f.btnBannerReadMore||f.showMore,subservice:(null===(u=null==r?void 0:r.labels)||void 0===u?void 0:u.SUB_SERVICE)||"Subservice",subservices:(null===(l=null==r?void 0:r.labels)||void 0===l?void 0:l.SUB_SERVICES)||"Subservices",subservicesDescription:(null===(d=null==r?void 0:r.labels)||void 0===d?void 0:d.SUB_SERVICES_DESCRIPTION)||"Below you can find all the services that are subordinate to this service. The current consent status of this service applies to all subservices."},p.links={cookiePolicy:{ariaLabel:Ln.cookiePolicyButton,label:Gt(f.cookiePolicyLinkText,""),url:t.cookiePolicyUrl},imprint:{ariaLabel:Ln.imprintButton,label:f.imprintLinkText||null,url:t.imprintUrl},privacyPolicy:{ariaLabel:Ln.privacyPolicyButton,label:f.privacyPolicyLinkText,url:t.privacyPolicyUrl}},t.integrations&&t.integrations.mine){var h={mine:{ariaLabel:"",label:t.integrations.mine[0].privacyCenterLabel,url:t.integrations.mine[0].privacyCenterUrl}};p.integrationLinks=at(at({},p.integrationLinks),h)}return p.poweredBy={label:"Powered by",partnerUrlLabel:Gt(f.partnerPoweredByLinkText,null),urlLabel:"Usercentrics Consent Management"},p.service={dataCollected:{description:f.dataCollectedInfo,title:f.dataCollectedList},dataDistribution:{processingLocationDescription:f.locationofProcessingInfo,processingLocationTitle:f.locationOfProcessing,thirdPartyCountriesDescription:f.transferToThirdCountriesInfo,thirdPartyCountriesTitle:f.transferToThirdCountries},dataProtectionOfficer:{description:f.dataProtectionOfficerInfo,title:f.dataProtectionOfficer},dataPurposes:{description:f.dataPurposesInfo,title:f.dataPurposes},dataRecipients:{description:f.dataRecipientsListInfo,title:f.dataRecipientsList},descriptionTitle:f.descriptionOfService,history:{description:null,title:f.history},legalBasis:{description:f.legalBasisInfo,title:f.legalBasisList},processingCompanyTitle:f.processingCompany,retentionPeriod:{description:f.retentionPeriodInfo,title:f.retentionPeriod},technologiesUsed:{description:f.technologiesUsedInfo,title:f.technologiesUsed},urls:{cookiePolicyTitle:f.cookiePolicyInfo,optOutTitle:f.optOut,privacyPolicyTitle:f.policyOf}},p.services=n.consentTemplates.reduce((function(e,t){var n=new Br(t,r,i);return dt(dt([],lt(e),!1),[n],!1)}),[]),p}return $e(t,e),t}((function(){this.ariaLabels=Ln})),Gr=function(e){function t(t,n,r,i){var s=e.call(this,t,n,r,i)||this;return s.buttons={optOutNotice:t.ccpa.optOutNoticeLabel||"Do not sell my personal information",save:t.ccpa.btnSave||"okay",showSecondLayer:t.ccpa.btnMoreInfo||t.labels.btnMore},s.firstLayer={description:{default:t.ccpa.firstLayerDescription||"",short:t.ccpa.firstLayerMobileDescription||"",shortDesktop:t.ccpa.firstLayerShortMessage||"",shortMobile:t.ccpa.firstLayerMobileDescription||""},title:t.ccpa.firstLayerTitle||""},s.secondLayer={categoryTab:t.secondLayer.tabsCategoriesLabel,description:t.ccpa.secondLayerDescription||"",serviceTab:t.secondLayer.tabsServicesLabel,title:t.ccpa.secondLayerTitle||""},s}return $e(t,e),t}(Mr),Hr=function(e,t){var n;this.acceptAllImplicitlyOutsideEU=e.displayOnlyForEU,this.consentAnalytics=Gt(e.consentAnalytics,!1),this.consentAPIv2=Gt(e.consentAPIv2,!1),this.consentXDevice=Gt(e.consentXDevice,!1),this.consentSharingIFrameIsActive=e.consentSharingIFrameIsActive,this.dataExchangeSettings=e.dataExchangeOnPage.reduce((function(e,t){return t.type===Qt.DATA_LAYER?e.push({names:t.names,type:Je.DATA_LAYER}):t.type===Qt.WINDOW_EVENT&&e.push({names:t.names,type:Je.WINDOW_EVENT}),e}),[]),this.googleConsentMode=e.googleConsentMode,this.id=e.settingsId,this.isCcpaEnabled=(null===(n=e.ccpa)||void 0===n?void 0:n.isActive)||!1,this.isEmbeddingsEnabled=!0,this.isTagLoggerActive=e.tagLoggerIsActive,this.isTcfEnabled=e.tcf2Enabled||!1,this.language={available:e.languagesAvailable,selected:t},this.reshowBanner=Gt(e.reshowBanner,-1),this.showFirstLayerOnVersionChange=e.showInitialViewForVersionChange.map((function(e){switch(e){case en.MAJOR:return Ke.MAJOR;case en.MINOR:return Ke.MINOR;case en.PATCH:default:return Ke.PATCH}})),this.version=e.version},$r=function(e){function t(t,n,r,i){var s,o,a,c=this;return(c=e.call(this,t,n,r,i)||this).buttons={acceptAll:t.labels.btnAcceptAll,cnilDeny:(null===(s=null==r?void 0:r.labels)||void 0===s?void 0:s.CNIL_DENY_LINK_TEXT)||"Continuer sans accepter",denyAll:t.labels.btnDeny,save:t.labels.btnSave,showSecondLayer:t.labels.btnMore},c.firstLayer={description:{default:t.bannerMessage||"",short:t.bannerMobileDescription||"",shortDesktop:t.firstLayer.shortMessage||"",shortMobile:t.bannerMobileDescription||""},title:Gt(t.labels.firstLayerTitle,"Privacy Settings")},c.secondLayer={acceptButtonLabel:t.secondLayer.acceptButtonText,categoryTab:t.secondLayer.tabsCategoriesLabel,dataTransferFilter:{all:(null===(o=null==r?void 0:r.labels)||void 0===o?void 0:o.ALL)||"All",thirdCountry:(null===(a=null==r?void 0:r.labels)||void 0===a?void 0:a.THIRD_COUNTRY_TRANSFER)||"Data Transfer to Third Countries"},denyButtonLabel:t.secondLayer.denyButtonText,description:t.labels.titleCorner,serviceTab:t.secondLayer.tabsServicesLabel,title:t.labels.headerCorner},c}return $e(t,e),t}(Mr),jr=function(e,t,n){this.privacyButton=Gt(null==n?void 0:n.labelsAria.privacyButton,""),this.services=e.consentTemplates.reduce((function(e,r){var i=new Br(r,n,t);return dt(dt([],lt(e),!1),[i],!1)}),[])},Yr=function(){function e(){this.needsSessionRestore=!1,this.apiInstance=lr.getInstance(),this.locationInstance=rr.getInstance()}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){delete e.instance.noShow},e.prototype.unsetNoShow=function(){delete this.noShow},e.prototype.getIsUsingNoShow=function(){return void 0!==this.noShow},e.prototype.getNoShow=function(){return!0===this.noShow},e.prototype.setNoShow=function(e){this.noShow=e},e.prototype.resolveSettingsId=function(){return ct(this,void 0,void 0,(function(){var e,t,n,r,i,s,o,a;return ut(this,(function(c){switch(c.label){case 0:return[4,this.apiInstance.fetchRuleset()];case 1:return e=c.sent(),n="",r=e.location,i=e.rules,s=e.defaultRule,o=s.settingsId,a=s.noShow,r&&r.code&&(t=r.regionCode&&i.find((function(e){var t;return null===(t=e.locations)||void 0===t?void 0:t.includes(r.regionCode)}))||i.find((function(e){var t;return null===(t=e.locations)||void 0===t?void 0:t.includes(r.code)})),this.locationInstance.setUserCountryData(r),kt.setUserCountryResponse(rr.mapUserCountryData(r))),this.unsetNoShow(),t?(n=t.settingsId,void 0!==t.noShow&&this.setNoShow(!0===t.noShow)):(n=o,this.setNoShow(!0===a)),[2,{name:"Resolved Settings Id",noShow:this.getNoShow(),settingsId:n}]}}))}))},e}(),Wr=function(e){this.cookieMaxAgeSeconds=null,this.cookieRefresh=null,this.dataCollected=[],this.dataDistribution=null,this.dataProtectionOfficer=null,this.dataPurposes=[],this.dataRecipients=[],this.deviceStorage=null,this.deviceStorageDisclosureUrl=null,this.language=null,this.processingCompany=null,this.retentionPeriodDescription=null,this.technologiesUsed=[],this.urls=null,this.usesCookies=null,this.usesNonCookieAccess=null,this.cookieMaxAgeSeconds=Gt(null==e?void 0:e.cookieMaxAgeSeconds,null),this.cookieRefresh=Gt(null==e?void 0:e.cookieRefresh,null),this.dataCollected=e?zr(e,Zt.DATA_COLLECTED_LIST):[],this.dataDistribution=e?Kr(e):null,this.dataProtectionOfficer=Gt(null==e?void 0:e.dataProtectionOfficer,null),this.dataPurposes=e?Jr(e):[],this.dataRecipients=e?zr(e,Zt.DATA_RECIPIENTS_LIST):[],this.description=Fr(null,e),this.deviceStorage=Gt(null==e?void 0:e.deviceStorage,null),this.deviceStorageDisclosureUrl=Gt(null==e?void 0:e.deviceStorageDisclosureUrl,null),this.language=e?qr(e):null,this.processingCompany=e?Xr(e):null,this.retentionPeriodDescription=e?Qr(e):null,this.technologiesUsed=e?zr(e,Zt.TECHNOLOGY_USED):[],this.usesCookies=Gt(null==e?void 0:e.usesCookies,null),this.usesNonCookieAccess=Gt(null==e?void 0:e.usesNonCookieAccess,null),this.urls=e?Zr(e):null},zr=function(e,t){var n;return Bt(e[t])?e[t]:(null===(n=e[t])||void 0===n?void 0:n.length)>0?[e[t]]:[]},Jr=function(e){var t=zr(e,Zt.DATA_PURPOSES_LIST);return Bt(t)?t:e.dataPurposes},Kr=function(e){return{processingLocation:e.locationOfProcessing,thirdPartyCountries:e.thirdCountryTransfer?e.thirdCountryTransfer.split(","):[]}},qr=function(e){return{available:e.languagesAvailable,selected:e.language}},Xr=function(e){return{address:e.addressOfProcessingCompany,dataProtectionOfficer:e.dataProtectionOfficer,name:e.nameOfProcessingCompany||e.processingCompany}},Qr=function(e){var t;return e.retentionPeriodDescription||(null===(t=e.retentionPeriodList)||void 0===t?void 0:t[0])||""},Zr=function(e){return{cookiePolicy:e.cookiePolicyURL,dataProcessingAgreement:e.linkToDpa,optOut:e.optOutUrl,privacyPolicy:e.privacyPolicyURL||e.policyOfProcessorUrl}},ei=function(e){function t(t,n,r,i,s){var o,a,c,u=this;u=e.call(this,t,n,i,s)||this;var l=t.labels,d=t.tcf2;return u.cookieInformation.purposes=d.labelsPurposes,u.buttons={acceptAll:d.buttonsAcceptAllLabel,denyAll:d.buttonsDenyAllLabel,manageSettings:d.linksManageSettingsLabel,save:d.buttonsSaveLabel,showVendorTab:d.linksVendorListLinkLabel},u.firstLayer={description:{additionalInfo:d.firstLayerAdditionalInfo||null,dataSharedOutsideEUText:d.showDataSharedOutsideEUText&&d.dataSharedOutsideEUText?d.dataSharedOutsideEUText:null,default:d.firstLayerDescription.replace("%VENDOR_COUNT%",r.toString()),resurfaceNote:d.firstLayerNoteResurface||null},disclaimer:{serviceScope:d.firstLayerNoteService},title:d.firstLayerTitle},u.secondLayer={dataSharedOutsideEU:{text:(null===(o=null==i?void 0:i.labels)||void 0===o?void 0:o.VENDORS_OUTSIDE_EU)||null,title:l.transferToThirdCountries},dataTransferFilter:{all:(null===(a=null==i?void 0:i.labels)||void 0===a?void 0:a.ALL)||"All",thirdCountry:(null===(c=null==i?void 0:i.labels)||void 0===c?void 0:c.THIRD_COUNTRY_TRANSFER)||"Data Transfer to Third Countries"},description:d.secondLayerDescription,purposesTab:d.tabsPurposeLabel,title:d.secondLayerTitle,vendorsTab:d.tabsVendorsLabel},u.titles={acmVendors:d.labelsAcmVendors||"Google Ad Technology Providers (ATPs)",examples:d.examplesLabel||"Examples",features:d.labelsFeatures,iabVendors:d.labelsIabVendors,nonIabPurposes:d.labelsNonIabPurposes,nonIabVendors:d.labelsNonIabVendors,purposes:d.labelsPurposes},u.toggles={consent:t.tcf2.togglesConsentToggleLabel,legitimateInterest:t.tcf2.togglesLegIntToggleLabel,specialFeaturesToggle:{offLabel:t.tcf2.togglesSpecialFeaturesToggleOff,onLabel:t.tcf2.togglesSpecialFeaturesToggleOn}},u.vendor={dataCategories:d.categoriesOfDataLabel,dataRetention:d.dataRetentionPeriodLabel,dataRetentionUnit:l.days,features:d.vendorFeatures,legitimateInterest:d.vendorLegitimateInterestPurposes,legitimateInterestClaim:d.legitimateInterestLabel,privacyPolicy:l.privacyPolicyLinkText,purposes:d.vendorPurpose,specialFeatures:d.vendorSpecialFeatures,specialPurposes:d.vendorSpecialPurposes,toggleAll:d.labelsActivateAllVendors},u}return $e(t,e),t}(Mr),ti=function(){function e(){this.aggregatedServices=[],this.allLegacyServicesHaveName=!1,this.isVariantLoaded=!1,this.isAggregatorLoaded=!1,this.language="",this.translations=null,this.botInstance=vr.getInstance(),this.locationInstance=rr.getInstance(),this.rulesetInstance=Yr.getInstance(),this.apiInstance=lr.getInstance(),this._core=null,this._coreJson=null,this._data=null,this._dpsJson=null,this._labels=null,this._legacySettings=null,this._ui=null,this.controllerIdInstance=tr.getInstance(),this.acceptAllImplicitlyOnInit=null,this.denyAllExplicitlyOnInit=null}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.allLegacyServicesHaveName=!1,e.instance.core=null,e.instance.data=null,e.instance.labels=null,e.instance.legacySettings=null,e.instance.ui=null,e.instance.dpsJson=null,e.instance.coreJson=null},Object.defineProperty(e.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"coreJson",{get:function(){return this._coreJson},set:function(e){this._coreJson=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dpsJson",{get:function(){return this._dpsJson},set:function(e){this._dpsJson=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labels",{get:function(){return this._labels},set:function(e){this._labels=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"legacySettings",{get:function(){return this._legacySettings},set:function(e){this._legacySettings=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ui",{get:function(){return this._ui},set:function(e){this._ui=e},enumerable:!1,configurable:!0}),e.prototype.init=function(e,t,n){return ct(this,void 0,void 0,(function(){return ut(this,(function(r){return this.language=n,this.core=new Hr(e,n),this.coreJson=e,this.dpsJson=t,this.isAggregatorLoaded=!1,this.allLegacyServicesHaveName=this.checkIfServiceNameExists(t.consentTemplates),this.isAggregatorLoaded=!1,[2]}))}))},e.prototype.initData=function(e,t,n,r,i,s,o){return void 0===t&&(t=[]),void 0===n&&(n=!0),void 0===r&&(r=!1),void 0===i&&(i=[]),void 0===s&&(s=!1),void 0===o&&(o=!1),ct(this,void 0,void 0,(function(){var a,c,u,l,d,p,f=this;return ut(this,(function(h){switch(h.label){case 0:if(c=(a=this).coreJson,u=a.dpsJson,l=a.legacySettings,!c||!u)return[2];switch(d=this.controllerIdInstance.value,p=(null==t?void 0:t.length)?t:this.aggregatedServices,e){case 0:return[3,1];case 2:return[3,3];case 1:return[3,5]}return[3,7];case 1:return[4,dynamicImportPolyfill("./CcpaData-9f41b999-8503fe36.js",import.meta.url).then((function(e){var t=new e.default(c,u,d,s);f.data=t}))];case 2:return h.sent(),[3,8];case 3:return l?[4,dynamicImportPolyfill("./TcfData-6156d888-d57082b4.js",import.meta.url).then((function(e){var t=e.default;return ct(f,void 0,void 0,(function(){var e,s;return ut(this,(function(a){switch(a.label){case 0:return(e=this.getDataTransferSettings())&&c.tcf2?(s=new t(l,c.tcf2,u,e,d,this.language,i,o),this.data=s,n?[4,s.init(r)]:[3,2]):[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}}))}))}))]:[2];case 4:return h.sent(),[3,8];case 5:return[4,dynamicImportPolyfill("./DefaultData-07bd028a-99466e8b.js",import.meta.url).then((function(e){var t=new e.default(u,d,p);f.data=t}))];case 6:return h.sent(),[3,8];case 7:console.error("Usercentrics: Unknown variant"),h.label=8;case 8:return this.isVariantLoaded=!0,[2]}}))}))},e.prototype.checkIfServiceNameExists=function(e){return e.every((function(e){var t;return null!=(null===(t=e._meta)||void 0===t?void 0:t.name)}))},e.prototype.initLabels=function(e,t,n){var r=this,i=r.coreJson,s=r.dpsJson,o=r.legacySettings,a=(null==n?void 0:n.length)?n:this.aggregatedServices;if(s&&this.core)if(o)switch(e){case 0:var c=new Gr(o,s,t,a);this.labels=c;break;case 1:var u=new $r(o,s,t,a);this.labels=u;break;case 2:var l=new ei(o,s,this.getThirdPartyCount(),t,a);this.labels=l;break;default:console.error("Usercentrics: Unknown variant")}else{var d=new jr(s,a,t),p=i?{label:"Powered by",partnerUrlLabel:Gt(i.labels.partnerPoweredByLinkText,null),urlLabel:"Usercentrics Consent Management"}:void 0;this.labels=at(at({},d),{poweredBy:p})}else console.error("Usercentrics: You have to call the init method before!")},e.prototype.initUI=function(e,t){return ct(this,void 0,void 0,(function(){var n,r,i,s=this;return ut(this,(function(o){switch(o.label){case 0:return r=(n=this).coreJson,i=n.legacySettings,r?2!==e?[3,2]:[4,dynamicImportPolyfill("./PrivacyButtonUI-9955e082-0ccc9efe.js",import.meta.url).then((function(e){var t,n=e.default,o=Jt.CAT,a=!1;i&&(o=i.secondLayer.defaultView,a=i.secondLayer.hideDataProcessingServices);var c=new n(r,{defaultView:o,hideDataProcessingServices:a}),u=r.enablePoweredBy?{partnerUrl:r.partnerPoweredByUrl||null,url:Rn}:null;s.ui=at(at({},c),{customCss:(null===(t=null==i?void 0:i.features)||void 0===t?void 0:t.customCss)&&i.useUnsafeCustomCss&&null!=i.stylesCss?i.stylesCss:null,poweredBy:u})}))]:[2];case 1:return o.sent(),[2];case 2:if(!i)return[2];switch(t){case 0:return[3,3];case 1:return[3,5];case 2:return[3,7]}return[3,9];case 3:return[4,dynamicImportPolyfill("./CcpaUI-92384c15-2922c27f.js",import.meta.url).then((function(e){var t=new e.default(r,i);s.ui=t}))];case 4:return o.sent(),[3,10];case 5:return[4,dynamicImportPolyfill("./DefaultUI-5de55ff4-5d56450d.js",import.meta.url).then((function(e){var t=new e.default(r,i);s.ui=t}))];case 6:return o.sent(),[3,10];case 7:return[4,dynamicImportPolyfill("./TcfUI-1891e6c0-830fb0fc.js",import.meta.url).then((function(e){var t=new e.default(r,i);s.ui=t}))];case 8:return o.sent(),[3,10];case 9:console.error("Usercentrics: Unknown variant"),o.label=10;case 10:return[2]}}))}))},e.prototype.getCcpaData=function(){return yn(this.data)?this.data:null},e.prototype.getDefaultData=function(){return function(e){return null!=e&&!yn(e)&&!_n(e)}(this.data)?this.data:null},e.prototype.getTcfData=function(){return _n(this.data)?this.data:null},e.prototype.getCcpaLabels=function(){return bn(this.labels)?this.labels:null},e.prototype.getDefaultLabels=function(){return In(this.labels)?this.labels:null},e.prototype.getTcfLabels=function(){return Sn(this.labels)?this.labels:null},e.prototype.getCcpaUI=function(){return An(this.ui)?this.ui:null},e.prototype.getDefaultUI=function(){return wn(this.ui)?this.ui:null},e.prototype.getTcfUI=function(){return Tn(this.ui)?this.ui:null},e.prototype.getDataExchangeSettings=function(){return this.core?this.core.dataExchangeSettings:[]},e.prototype.getCategoriesData=function(){return this.data?this.data.categories:[]},e.prototype.getCategoriesBaseData=function(){var e=this;return this.data?this.data.categories.map((function(t){return{isEssential:t.isEssential,isHidden:t.isHidden,services:e.getServicesBaseInfo().filter((function(e){return e.categorySlug===t.slug})),slug:t.slug}})):[]},e.prototype.getCategoriesLabels=function(){return this.labels&&En(this.labels)?this.labels.categories:[]},e.prototype.getCategoriesDataAndLabels=function(){return function(e,t,n){return e.reduce((function(e,r){var i=t.find((function(e){return e.slug===r.slug})),s=mn(r.services,n);return i&&e.push(at(at(at({},i),r),{services:s})),e}),[])}(this.getCategoriesData(),this.getCategoriesLabels(),this.getServicesLabels())},e.prototype.getCategoriesBasic=function(){var e=this.getCategoriesData(),t=this.getServicesLabels();return e.reduce((function(e,n){return dt(dt([],lt(e),!1),[at(at({},n),{services:vn(n.services,t)})],!1)}),[])},e.prototype.getCategoriesBaseInfo=function(){return this.getCategoriesDataAndLabels()},e.prototype.getCategoriesFullInfo=function(e,t){return ct(this,void 0,void 0,(function(){return ut(this,(function(n){switch(n.label){case 0:return this.isAggregatorLoaded?[3,2]:[4,this.extendServices(e,t)];case 1:n.sent(),n.label=2;case 2:return[2,this.getCategoriesDataAndLabels()]}}))}))},e.prototype.getDataTransferSettings=function(e){return this.core?{controllerId:this.controllerIdInstance.value,id:this.core.id,selectedLanguage:this.core.language.selected,version:e||this.core.version}:null},e.prototype.getEssentialCategories=function(){return this.getCategoriesLabels().length?this.getCategoriesDataAndLabels().reduce((function(e,t){return t.isEssential?dt(dt([],lt(e),!1),[t],!1):e}),[]):this.getCategoriesBasic().filter((function(e){return e.isEssential}))},e.prototype.getEssentialCategoriesData=function(){return this.getCategoriesData().reduce((function(e,t){return t.isEssential?dt(dt([],lt(e),!1),[t],!1):e}),[])},e.prototype.getNonEssentialCategories=function(){return this.getCategoriesLabels().length?this.getCategoriesDataAndLabels().reduce((function(e,t){return t.isEssential?e:dt(dt([],lt(e),!1),[t],!1)}),[]):this.getCategoriesBasic().filter((function(e){return!e.isEssential}))},e.prototype.getNonEssentialCategoriesData=function(){return this.getCategoriesData().reduce((function(e,t){return t.isEssential?e:dt(dt([],lt(e),!1),[t],!1)}),[])},e.prototype.getGoogleConsentMode=function(){return!!this.core&&this.core.googleConsentMode},e.prototype.getServicesLabels=function(){return this.labels?this.labels.services:[]},e.prototype.getServicesData=function(){return this.getCategoriesData().reduce((function(e,t){return dt(dt([],lt(e),!1),lt(t.services),!1)}),[])},e.prototype.getServicesDataAndLabels=function(){var e=this.getServicesData();return mn(e,this.getServicesLabels())},e.prototype.getServicesBaseInfo=function(){var e,t;return e=this.mapBaseServices(this.getServicesData()),t=this.getServicesLabels(),e.reduce((function(e,n){var r=t.find((function(e){return e.id===n.id}));return dt(dt([],lt(e),!1),[at(at(at({},n),r||gn),{id:n.id})],!1)}),[])},e.prototype.getServicesFullInfo=function(e,t){return ct(this,void 0,void 0,(function(){return ut(this,(function(n){switch(n.label){case 0:return this.isAggregatorLoaded?[3,2]:[4,this.extendServices(e,t)];case 1:n.sent(),n.label=2;case 2:return[2,this.getServicesDataAndLabels()]}}))}))},e.prototype.getServicesFromCategories=function(e){return e.reduce((function(e,t){return e.concat(t.services)}),[])},e.prototype.getServicesWithConsent=function(){return this.getServicesDataAndLabels().reduce((function(e,t){return t.consent.status?dt(dt([],lt(e),!1),[t],!1):e}),[])},e.prototype.areAllServicesAccepted=function(){return this.getServicesData().every((function(e){return e.consent.status}))},e.prototype.areAllVendorsAndPurposesAccepted=function(){var e=this.getTcfData();return!!e&&e.areAllPurposesAccepted()&&e.areAllVendorsAccepted()},e.prototype.extendServices=function(e,t){return ct(this,void 0,void 0,(function(){var n,r;return ut(this,(function(i){switch(i.label){case 0:return(n=this.dpsJson)?(this.isAggregatorLoaded=!0,[4,this.fetchServices(n)]):[2];case 1:return(r=i.sent())&&0!==r.length?(this.aggregatedServices=r,this.initLabels(e,t,r),this.data&&(this.data.categories=this.data.categories.map((function(e){var t=n.categories.find((function(t){return t.categorySlug===e.slug}));return at(at({},e),{services:e.services.map((function(e){if(n.consentTemplates.find((function(t){return t.templateId===e.id}))&&t){var i=null==r?void 0:r.find((function(t){return e.id===t.templateId&&e.version===t.version})),s=new Wr(i);return at(at({},e),s)}return e}))})}))),[2]):[2]}}))}))},e.prototype.isCcpaEnabled=function(){var e;return(null===(e=this.core)||void 0===e?void 0:e.isCcpaEnabled)||!1},e.prototype.isCcpaAvailable=function(){var e;if(this.isCcpaEnabled()&&null!=(null===(e=this.coreJson)||void 0===e?void 0:e.ccpa))switch(this.coreJson.ccpa.region){case qt.US:return this.locationInstance.getIsUserInUS();case qt.US_CA_ONLY:return this.locationInstance.getIsUserInCalifornia();default:return Promise.resolve(!0)}return Promise.resolve(!1)},e.prototype.isCrossDomainEnabled=function(){var e;return(null===(e=this.core)||void 0===e?void 0:e.consentSharingIFrameIsActive)||!1},e.prototype.isTcfEnabled=function(){var e;return(null===(e=this.core)||void 0===e?void 0:e.isTcfEnabled)||!1},e.prototype.isTcfAvailable=function(){var e;return this.isTcfEnabled()&&null!=(null===(e=this.coreJson)||void 0===e?void 0:e.tcf2)},e.prototype.isTagLoggerActive=function(){var e;return(null===(e=this.core)||void 0===e?void 0:e.isTagLoggerActive)||!1},e.prototype.mergeServicesIntoExistingCategories=function(e){return this.getCategoriesDataAndLabels().map((function(t){return at(at({},t),{services:t.services.map((function(t){return e.find((function(e){return e.id===t.id}))||t}))})}))},e.prototype.mergeServicesDataIntoExistingCategories=function(e){return this.getCategoriesData().map((function(t){return at(at({},t),{services:t.services.map((function(t){return e.find((function(e){return e.id===t.id}))||t}))})}))},e.prototype.setCategories=function(e){this.data&&(this.data.categories=e)},e.prototype.setControllerId=function(e){this.data&&(this.data.controllerId=e),_n(this.data)&&this.data.updateControllerId(e)},e.prototype.updateServicesLanguage=function(e){this.data&&this.data.categories.map((function(t){return at(at({},t),{services:t.services.map((function(t){return at(at({},t),{language:at(at({},t.language),{selected:e})})}))})}))},e.prototype.shouldDenyAllExplicitlyOnInit=function(){var e;return ct(this,void 0,void 0,(function(){var t;return ut(this,(function(n){switch(n.label){case 0:return null!==this.denyAllExplicitlyOnInit?[2,this.denyAllExplicitlyOnInit]:(t=this,[4,this.isCcpaAvailable()]);case 1:return t.denyAllExplicitlyOnInit=n.sent()&&!(null===(e=this.getCcpaData())||void 0===e?void 0:e.isExplicitConsented)&&!0===navigator.globalPrivacyControl||!1,[2,this.denyAllExplicitlyOnInit]}}))}))},e.prototype.shouldAcceptAllImplicitlyOnInit=function(){var e,t;return ct(this,void 0,void 0,(function(){var n,r,i,s,o,a;return ut(this,(function(c){switch(c.label){case 0:return null!==this.acceptAllImplicitlyOnInit?[2,this.acceptAllImplicitlyOnInit]:(n=this,(s=this.botInstance.isRobot())?[3,2]:[4,this.isCcpaAvailable()]);case 1:s=c.sent()&&!navigator.globalPrivacyControl,c.label=2;case 2:return(i=s)?[3,5]:(o=null===(e=this.core)||void 0===e?void 0:e.acceptAllImplicitlyOutsideEU)?[4,this.locationInstance.getIsUserInEU()]:[3,4];case 3:o=!c.sent(),c.label=4;case 4:i=o,c.label=5;case 5:return(r=i)?[3,8]:(a=this.isTcfAvailable())?[4,null===(t=this.getTcfData())||void 0===t?void 0:t.getGdprApplies()]:[3,7];case 6:a=!c.sent(),c.label=7;case 7:r=a,c.label=8;case 8:return n.acceptAllImplicitlyOnInit=r||""!==this.apiInstance.getRulesetId()&&this.rulesetInstance.getIsUsingNoShow()&&this.rulesetInstance.getNoShow(),[2,this.acceptAllImplicitlyOnInit]}}))}))},e.prototype.shouldAcceptAllImplicitlyOnVendorAdded=function(){var e,t,n;return ct(this,void 0,void 0,(function(){var r,i,s,o,a;return ut(this,(function(c){switch(c.label){case 0:return(s=this.botInstance.isRobot())?[3,2]:[4,this.isCcpaAvailable()];case 1:s=c.sent()&&!(null===(e=this.getCcpaData())||void 0===e?void 0:e.isOptedOut),c.label=2;case 2:return(i=s)?[3,5]:(o=null===(t=this.core)||void 0===t?void 0:t.acceptAllImplicitlyOutsideEU)?[4,this.locationInstance.getIsUserInEU()]:[3,4];case 3:o=!c.sent(),c.label=4;case 4:i=o,c.label=5;case 5:return(r=i)?[3,8]:(a=this.isTcfAvailable())?[4,null===(n=this.getTcfData())||void 0===n?void 0:n.getGdprApplies()]:[3,7];case 6:a=!c.sent(),c.label=7;case 7:r=a,c.label=8;case 8:return[2,r||""!==this.apiInstance.getRulesetId()&&this.rulesetInstance.getIsUsingNoShow()&&this.rulesetInstance.getNoShow()]}}))}))},e.prototype.shouldShowFirstLayerOnVersionChange=function(){var e=kt.fetchSettingsVersion();if(this.core&&e&&Bt(this.core.showFirstLayerOnVersionChange)){var t=this.core.version.split("."),n=e.split(".");return Vt(this.core.showFirstLayerOnVersionChange,Ke.MAJOR)&&t[0]!==n[0]||Vt(this.core.showFirstLayerOnVersionChange,Ke.MINOR)&&t[1]!==n[1]||Vt(this.core.showFirstLayerOnVersionChange,Ke.PATCH)&&t[2]!==n[2]}return!1},e.prototype.getUpdatedServicesWithConsent=function(e){return this.getServicesDataAndLabels().map((function(t){if(!t.isEssential){var n=t;return n.consent.status=e===ze.TRUE,n}return t}))},e.prototype.getUpdatedServicesDataWithConsent=function(e){return this.getServicesData().map((function(t){if(!t.isEssential){var n=t;return n.consent.status=e===ze.TRUE,n}return t}))},e.prototype.getUpdatedServicesWithDecisions=function(e){return this.getServicesDataAndLabels().map((function(t){var n=e.find((function(e){return e.serviceId===t.id})),r=t;return r.consent.status=t.isEssential||(n?n.status:t.consent.status),r}))},e.prototype.getUpdatedServicesDataWithDecisions=function(e){return this.getServicesData().map((function(t){var n=e.find((function(e){return e.serviceId===t.id})),r=t;return r.consent.status=t.isEssential||(n?n.status:t.consent.status),r}))},e.prototype.updateDataTransferSettings=function(e){var t=e.controllerId,n=e.id,r=e.selectedLanguage,i=e.version;this.core&&this.data&&(this.data.controllerId=t,this.core.id=n,this.core.language.selected=r,this.core.version=i)},e.prototype.isTcfHistoryV2Disabled=function(){return!!_n(this.data)&&!0===this.data.tcfv2HistoryDisabled},e.prototype.getTCFPurposeOneTreatment=function(){return _n(this.data)&&this.data.purposeOneTreatment||!1},e.prototype.getTCFStackIds=function(){return _n(this.data)?this.data.stackIds:[]},e.prototype.getTCFVendorIds=function(){return _n(this.data)?this.data.vendorIds:[]},e.prototype.getTCFDisclosedVendorsSegmentString=function(){var e;return null===(e=this.getTcfData())||void 0===e?void 0:e.getTCFDisclosedVendorsSegmentString()},e.prototype.injectTCString=function(e){return ct(this,void 0,void 0,(function(){var t;return ut(this,(function(n){return(t=this.getTcfData())?[2,t.injectTCString(e)]:[2,!1]}))}))},e.prototype.fetchServices=function(e){return ct(this,void 0,void 0,(function(){var t,n,r,i;return ut(this,(function(s){switch(s.label){case 0:return(t=ur(e.consentTemplates)).length?(n=lr.getInstance(),r=vr.getInstance(),i=[],r.isRobot()?[3,2]:[4,n.fetchAggregatedServices(t)]):[2,null];case 1:i=s.sent(),s.label=2;case 2:return[2,i]}}))}))},e.prototype.mapBaseServices=function(e){return e.map((function(e){return{categorySlug:e.categorySlug,consent:e.consent,fetchSubServices:e.fetchSubServices,id:e.id,isEssential:e.isEssential,isHidden:e.isHidden,processorId:e.processorId,subServices:e.subServices,subServicesLength:e.subServicesLength,usesThirdCountry:e.usesThirdCountry,version:e.version}}))},e.prototype.getThirdPartyCount=function(){var e=_n(this.data)?this.data.getVendorsCount():0;return this.getServicesData().length+e},e}(),ni=function(){function e(){this.restoreAction=null,this.apiInstance=lr.getInstance(),this.controllerIdInstance=tr.getInstance(),this.eventDispatcherInstance=br.getInstance(),this.settingsV2=ti.getInstance(),this.botInstance=vr.getInstance()}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){delete e.instance.userSessionData},e.prototype.execute=function(e,t,n,r,i,s){var o,a,c,u=this.settingsV2.getDataTransferSettings();if(u){var l=e.map((function(e){return Ht(u,e,n,r,e.categorySlug)})),d=ri(t,l);if(!this.botInstance.isRobot()&&(s&&this.apiInstance.saveConsentsV1_DEPRECATED({consentString:i,dataTransferObjects:l}),null===(o=this.settingsV2.core)||void 0===o?void 0:o.consentAPIv2)){var p=$t({consentAction:n,consentString:i,dataTransferSettings:u,isAnalyticsEnabled:null===(a=this.settingsV2.core)||void 0===a?void 0:a.consentAnalytics,isCcpa:this.settingsV2.isCcpaEnabled(),isConsentXDeviceEnabled:null===(c=this.settingsV2.core)||void 0===c?void 0:c.consentXDevice,isTcf:!1,services:e});this.apiInstance.saveConsents(p)}this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(d));var f=this.settingsV2.getServicesDataAndLabels(),h=kt.mapSettings(u,f);kt.saveSettings(h,f),kr.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent()),this.eventDispatcherInstance.dispatch(l,this.settingsV2.getGoogleConsentMode())}},e.prototype.getMergedServicesAndSettingsFromStorage=function(e){var t=e,n=kt.fetchSettings();if(n&&t){var r=this.settingsV2.getServicesFromCategories(this.settingsV2.getEssentialCategories()),i=this.settingsV2.getServicesFromCategories(this.settingsV2.getEssentialCategoriesData()),s=this.settingsV2.getServicesFromCategories(this.settingsV2.getNonEssentialCategories()),o=this.settingsV2.getServicesFromCategories(this.settingsV2.getNonEssentialCategoriesData()),a=this.getMergedAndUpdatedEssentialServices(r,n),c=this.getMergedAndUpdatedEssentialServices(i,n),u=this.getMergedNonEssentialServices(s,n),l=this.getMergedNonEssentialServices(o,n);return n.controllerId!==this.controllerIdInstance.value&&""===this.controllerIdInstance.value&&(this.controllerIdInstance.value=n.controllerId,t.controllerId=n.controllerId,_n(t)&&t.updateControllerId(n.controllerId)),{dataTransferSettings:this.settingsV2.getDataTransferSettings(),mergedServices:a.mergedEssentialServices.concat(u),mergedServicesData:c.mergedEssentialServices.concat(l),mergedSettingsData:t,updatedEssentialServices:a.updatedEssentialServices}}return{dataTransferSettings:null,mergedServices:[],mergedServicesData:[],mergedSettingsData:t,updatedEssentialServices:[]}},e.prototype.getLatestConsentType=function(e){return e.length>0?e[e.length-1].type:"implicit"},e.prototype.getLatestConsentAction=function(e){return e.length>0?e[e.length-1].action:"onInitialPageLoad"},e.prototype.setUserSessionData=function(e){this.userSessionData=e},e.prototype.mergeServicesAndSettings=function(e,t,n,r,i,s){var o,a,c,u=this;if(!n)return[];if(Bt(r)){var l=r.map((function(e){return Ht(n,e,"onEssentialChange",u.getLatestConsentType(e.consent.history),null==e?void 0:e.categorySlug)})),d=ri(t,l),p=ii(t,d,i);if(s&&this.apiInstance.saveConsentsV1_DEPRECATED({dataTransferObjects:l}),null===(o=this.settingsV2.core)||void 0===o?void 0:o.consentAPIv2){var f=$t({consentAction:"onEssentialChange",dataTransferSettings:n,isAnalyticsEnabled:null===(a=this.settingsV2.core)||void 0===a?void 0:a.consentAnalytics,isCcpa:this.settingsV2.isCcpaEnabled(),isConsentXDeviceEnabled:null===(c=this.settingsV2.core)||void 0===c?void 0:c.consentXDevice,isTcf:this.settingsV2.isTcfAvailable(),services:r});this.apiInstance.saveConsents(f)}this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(d)),kt.saveSettings(kt.mapSettings(n,p),p)}else this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(t)),kt.saveSettings(kt.mapSettings(n,e),e);return e.map((function(e){return Ht(n,e,u.getLatestConsentAction(e.consent.history),u.getLatestConsentType(e.consent.history),null==e?void 0:e.categorySlug)}))},e.prototype.restoreUserSession=function(e){var t,n,r;return ct(this,void 0,void 0,(function(){var i;return ut(this,(function(s){switch(s.label){case 0:return this.controllerIdInstance.value&&this.controllerIdInstance.needsSessionRestore&&(!(null===(t=this.settingsV2.core)||void 0===t?void 0:t.consentAPIv2)||(null===(n=this.settingsV2.core)||void 0===n?void 0:n.consentAPIv2)&&(null===(r=this.settingsV2.core)||void 0===r?void 0:r.consentXDevice))?[4,this.getCrossDeviceSessionData(this.controllerIdInstance.value)]:[3,2];case 1:i=s.sent(),s.label=2;case 2:if(!i&&this.userSessionData&&(i=at({},this.userSessionData)),!i&&window[gt]&&"function"==typeof window[gt].getUserSessionData)try{(null==(i=JSON.parse(window[gt].getUserSessionData(),(function(e,t){if("timestamp"===e){var n=t.toString();return-1!==n.indexOf(".")?1e3*Number(n):Number(n)}return t})))?void 0:i.consents)&&(null==i?void 0:i.consents.length)&&!i.consents.every((function(e){return e.action}))&&(i.consents=i.consents.map((function(e){return at(at({},e),{action:"onMobileSessionRestore"})})),this.restoreAction="onMobileSessionRestore")}catch(e){}return i||!Rt.isCrossDomainAvailable()?[3,4]:[4,this.getCrossDomainSessionData()];case 3:i=s.sent(),s.label=4;case 4:return i&&i.controllerId?[2,this.restoreData(i,e)]:(this.controllerIdInstance.needsSessionRestore=!1,[2,!1])}}))}))},e.prototype.getCrossDomainSessionData=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(e){switch(e.label){case 0:return[4,Rt.getCrossDomainSessionData().catch((function(){return console.warn(st.CROSS_DOMAIN_DATA_NOT_AVAILABLE),{}}))];case 1:return[2,e.sent()]}}))}))},e.prototype.getCrossDeviceSessionData=function(e){var t,n;return ct(this,void 0,void 0,(function(){var r,i,s,o,a,c,u,l,d,p,f;return ut(this,(function(h){switch(h.label){case 0:return r=["dWLDa0s-m","VkvM9IcSA","Zdgjo9gQh","r2tAWzO7","GVl-ixMH"],i=this.apiInstance.getSettingsId(),s=this.settingsV2.isTcfAvailable(),[4,this.settingsV2.isCcpaAvailable()];case 1:return o=h.sent(),a=null===(t=this.settingsV2.core)||void 0===t?void 0:t.consentAPIv2,c=[],u=null,l=null,a?[4,this.apiInstance.fetchUserConsentsV2(s,o).catch((function(){return console.warn(it.CROSS_DEVICE_DATA_NOT_AVAILABLE),null}))]:[3,3];case 2:return d=h.sent(),c=null!==(n=null==d?void 0:d.consents)&&void 0!==n?n:[],s&&(-1===r.indexOf(i)&&this.settingsV2.isTcfHistoryV2Disabled()||(u=null==d?void 0:d.tcf)),o&&(l=null==d?void 0:d.ccpa),[3,8];case 3:return[4,this.apiInstance.fetchUserConsents().catch((function(){return console.warn(it.CROSS_DEVICE_DATA_NOT_AVAILABLE),[]}))];case 4:return p=h.sent(),c=p,s?-1===r.indexOf(i)?[3,6]:[4,this.apiInstance.fetchUserTcfData().catch((function(){return console.warn(it.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE),null}))]:[3,8];case 5:return u=h.sent(),[3,8];case 6:return this.settingsV2.isTcfHistoryV2Disabled()?[3,8]:[4,this.apiInstance.fetchUserTcfDataV2().catch((function(){return console.warn(it.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE),null}))];case 7:u=h.sent(),h.label=8;case 8:return s&&!u&&Rt.isCrossDomainAvailable()?[4,this.getCrossDomainSessionData()]:[3,10];case 9:(f=h.sent())&&f.tcf&&f.controllerId===e&&(u=f.tcf),h.label=10;case 10:return[2,at(at({consents:c,controllerId:e,language:this.apiInstance.getJsonFileLanguage()},null!==u&&{tcf:u}),null!==l&&{ccpa:l})]}}))}))},e.prototype.restoreData=function(e,t){return ct(this,void 0,void 0,(function(){var n,r,i,s,o,a,c,u,l,d,p,f,h,g,v,m,y,_,b=this;return ut(this,(function(S){switch(S.label){case 0:return n=e.controllerId,r=e.consents,i=e.tcf,s=e.ccpa,o=this.settingsV2.core,a=this.getDataFacadeServices(t),c=kt.fetchControllerId(),this.controllerIdInstance.value=n,u=kt.fetchTCFData(),l=!1,!n||!Bt(r)&&a.length?[3,5]:(d=oi(r),p=kt.fetchServices(),"onSessionRestored"===e.consents[0].action&&n===c&&p.length===d.length&&p[0].history.length>0&&p[0].history[0].action&&"onSessionRestored"===p[0].history[0].action?[3,5]:[3,1]);case 1:return!Bt(d)&&a.length?[3,5]:(f=[],h=[],d.forEach((function(e){var t=a.findIndex((function(t){return t.id===e.templateId}));if(t>-1){var n=a[t],r=n;r.consent.status=e.status;var i=h.findIndex((function(e){return e.id===n.id}));-1===i?h.push(r):h[i]=r,a[t]=r;var s=b.settingsV2.getDataTransferSettings(e.settingsVersion);s&&f.push(Ht(s,r,e.action,e.updatedBy,n.categorySlug,{timestamp:"string"==typeof e.timestamp?b.resolveTimestamp(e.timestamp):e.timestamp}))}})),this.settingsV2.data&&this.settingsV2.setControllerId(n),g=void 0,v=void 0,o&&d.length&&(v=Yt(d.map((function(e){return e.settingsVersion}))).sort(on)).length&&(g=v[v.length-1]),m=ri(a,f),(y=this.settingsV2.getDataTransferSettings(g))?c&&n&&n!==c?[4,kt.clearAll()]:[3,3]:[3,4]);case 2:S.sent(),S.label=3;case 3:kt.saveSettings(kt.mapSettings(y,m),m),S.label=4;case 4:Bt(d)&&kt.setUserActionPerformed(!0),l=!0,S.label=5;case 5:return i&&i.tcString&&i.tcString!==u.tcString&&(kt.saveTCFData(i),a.length||kt.setUserActionPerformed(!0)),_=this.settingsV2.getCcpaData(),s&&s.ccpaString&&_&&(_.setIsOptedOut(s.ccpaString),kt.setCcpaString(s.ccpaString),s.timestamp?kt.setCcpaTimeStamp(s):kt.clearCcpaData(),kt.setUserActionPerformed(!0)),[2,l]}}))}))},e.prototype.getDataFacadeServices=function(e){var t=this.settingsV2.checkIfServiceNameExists,n=e.categories,r=e.consentTemplates;if(r.length>0&&t(r))return r.map((function(e){var t,r=n.find((function(t){return t.categorySlug===e.categorySlug}));return{categorySlug:e.categorySlug,consent:xr(e,r),id:e.templateId,name:(null===(t=e._meta)||void 0===t?void 0:t.name)||"",processorId:"".concat(Jn(er())),version:e.version}}));var i=this.settingsV2.getServicesDataAndLabels();return i.length>0?i.map((function(e){return{categorySlug:e.categorySlug,consent:e.consent,id:e.id,name:e.name,processorId:e.processorId,version:e.version}})):[]},e.prototype.getMergedAndUpdatedEssentialServices=function(e,t){var n=this,r=[],i=e.map((function(e){var i,s,o=null===(i=t.services)||void 0===i?void 0:i.find((function(t){return t.id===e.id}));if(o){var a=e;return a.consent.history=o.history,a.consent.status=!0,a.processorId=o.processorId,a.categorySlug=(null===(s=n.settingsV2.getCategoriesBaseData().find((function(e){return e.services.some((function(e){return e.id===a.id}))})))||void 0===s?void 0:s.slug)||"",o.status||r.push(a),a}return e}));return{mergedEssentialServices:i,updatedEssentialServices:r}},e.prototype.getMergedNonEssentialServices=function(e,t){return e.map((function(e){var n,r,i=null===(n=t.services)||void 0===n?void 0:n.find((function(t){return t.id===e.id}));if(i)return(s=e).consent.history=i.history,s.consent.status=i.status,s.processorId=i.processorId,s;if(0===e.consent.history.length){var s=e,o=null===(r=t.services)||void 0===r?void 0:r.find((function(e){return e.history.length>0}));return s.consent.history=[{action:"onInitialPageLoad",language:e.language?e.language.selected:Cr,status:e.consent.status,timestamp:(new Date).getTime(),type:"implicit",versions:o&&o.history.length>0?o.history[0].versions:{application:"",service:e.version,settings:""}}],s}return e}))},e.prototype.resolveTimestamp=function(e){return 10===e.length?1e3*parseInt(e,10):parseInt(e,10)},e}(),ri=function(e,t){return e.map((function(e){var n=t.filter((function(t){return t.service.id===e.id}));if(Bt(n)){var r=e.consent.history,i=r.length+n.length,s=i<=3?r:r.slice(i-3),o=e;return o.consent.history=dt(dt([],lt(s),!1),lt(n.map((function(e){return si(e)}))),!1),o}return e}))},ii=function(e,t,n){return e.reduce((function(e,r){var i=t.find((function(e){return e.id===r.id})),s=n.find((function(e){return e.id===r.id}));return i&&s?dt(dt([],lt(e),!1),[{categorySlug:r.categorySlug,consent:i.consent,id:r.id,language:r.language,name:s.name,processorId:r.processorId,version:r.version}],!1):dt([],lt(e),!1)}),[])},si=function(e){return{action:e.consent.action,language:e.settings.language,status:e.consent.status,timestamp:e.timestamp,type:e.consent.type,versions:{application:e.applicationVersion,service:e.service.version,settings:e.settings.version}}},oi=function(e){return e.filter((function(e){return!kn.includes(e.action)}))},ai=function(){function e(){this.primaryLanguage="",this.apiInstance=lr.getInstance()}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.setPrimaryLanguage=function(e){this.primaryLanguage=e},e.prototype.getPrimaryLanguage=function(){return this.primaryLanguage},e.prototype.resolveLanguage=function(e){return void 0===e&&(e=!1),ct(this,void 0,void 0,(function(){var t,n,r,i,s;return ut(this,(function(o){switch(o.label){case 0:return t=kt.fetchUserCountryResponse(),n=[],t?(rr.getInstance().setUserCountryData({code:t.countryCode,name:t.countryName,regionCode:t.regionCode}),[3,3]):[3,1];case 1:return[4,this.apiInstance.fetchAvailableLanguages()];case 2:n=o.sent(),o.label=3;case 3:if(!e){if(this.primaryLanguage)return this.apiInstance.setJsonFileLanguage(this.primaryLanguage),[2];if(r=kt.fetchLanguage())return this.apiInstance.setJsonFileLanguage(r),[2]}return n.length?[3,5]:[4,this.apiInstance.fetchAvailableLanguages()];case 4:n=o.sent(),o.label=5;case 5:return(i=ui(n))?(this.apiInstance.setJsonFileLanguage(i),[2]):(s=ci(n))?(this.apiInstance.setJsonFileLanguage(s),[2]):n.length>0?(this.apiInstance.setJsonFileLanguage(n[0]),[2]):(this.apiInstance.setJsonFileLanguage(Cr),[2])}}))}))},e}(),ci=function(e){var t=window.navigator;if(Bt(t.languages))for(var n=0;n-1})).sort((function(e,t){return t.timestamp-e.timestamp}));if(n>0&&r.length>0){var i=new Date(r[0].timestamp);return i.setMonth(i.getMonth()+n),t=i,(new Date).getTime()-t.getTime()>=0}return!1},e.prototype.shouldShowPrivacyButton=function(e){var t=window.location.href,n=!e.privacyButtonUrls||0===e.privacyButtonUrls.contains.length;return e.privacyButtonUrls&&e.privacyButtonUrls.contains.length>0&&e.privacyButtonUrls.contains.some((function(e){return t.includes(e)}))&&(n=!0),e.privacyButtonIsVisible&&n},e.prototype.resolveUiVariant=function(e){return ct(this,void 0,void 0,(function(){return ut(this,(function(t){switch(t.label){case 0:return null!==this.variant?[2,this.variant]:[4,this.settingsV2.isCcpaAvailable()];case 1:return t.sent()?this.variant=0:this.variant=e?2:1,[2,this.variant]}}))}))},e.prototype.resolveUiInitialLayer=function(e){return ct(this,void 0,void 0,(function(){return ut(this,(function(t){switch(t.label){case 0:return[4,this.shouldShowNone()];case 1:return t.sent()?[2,1]:this.shouldShowFirstLayer(e)?[2,0]:this.shouldShowPrivacyButton(e)?[2,2]:[2,1]}}))}))},e.prototype.resolveUIOptions=function(e){var t;return ct(this,void 0,void 0,(function(){var n,r,i,s;return ut(this,(function(o){switch(o.label){case 0:return n=this.ampInstance.isAmpEnabled(),null!==this.variant?[3,2]:(r=this,[4,this.resolveUiVariant(e.tcf2Enabled)]);case 1:r.variant=o.sent(),o.label=2;case 2:return 0!==this.variant&&kt.clearCcpa(),2!==this.variant&&kt.clearTcf(),i=this,(null===(t=this.initOptions)||void 0===t?void 0:t.suppressCmpDisplay)?(s=1,[3,5]):[3,3];case 3:return[4,this.resolveUiInitialLayer(e)];case 4:s=o.sent(),o.label=5;case 5:return i.selectedLayer=s,[2,{ampEnabled:n,initialLayer:this.selectedLayer,variant:this.variant}]}}))}))},e.prototype.shouldShowFirstLayerForCcpa=function(e,t){var n;void 0===t&&(t=365);var r,i=this.settingsV2.legacySettings,s=(r=kt.getCcpaData())?((new Date).getTime()-r.timestamp)/864e5:0;return i||void 0!==e?null!==(n=null!=e?e:null==i?void 0:i.ccpa.reshowCMP)&&void 0!==n&&n&&s>t:s>t},e}(),pi=Object.freeze({initialize:function({modulePath:e=".",importFunctionName:t="__import__"}={}){try{self[t]=new Function("u","return import(u)")}catch(n){const r=new URL(e,location),i=e=>{URL.revokeObjectURL(e.src),e.remove()};self[t]=e=>new Promise(((n,s)=>{const o=new URL(e,r);if(self[t].moduleMap[o])return n(self[t].moduleMap[o]);const a=new Blob([`import * as m from '${o}';`,`${t}.moduleMap['${o}']=m;`],{type:"text/javascript"}),c=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(a),onerror(){s(new Error(`Failed to import: ${e}`)),i(c)},onload(){n(self[t].moduleMap[o]),i(c)}});document.head.appendChild(c)})),self[t].moduleMap={}}}}),fi=function(e){Oe(n,Pe(Error));var t=ke(n);function n(e){var r;return Ee(this,n),(r=t.call(this,e)).name="DecodingError",r}return Te(n)}(),hi=function(e){Oe(n,Pe(Error));var t=ke(n);function n(e){var r;return Ee(this,n),(r=t.call(this,e)).name="EncodingError",r}return Te(n)}(),gi=function(e){Oe(n,Pe(Error));var t=ke(n);function n(e){var r;return Ee(this,n),(r=t.call(this,e)).name="GVLError",r}return Te(n)}(),vi=function(e){Oe(n,Pe(Error));var t=ke(n);function n(e,r){var i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Ee(this,n),(i=t.call(this,"invalid value ".concat(r," passed for ").concat(e," ").concat(s))).name="TCModelError",i}return Te(n)}(),mi=function(){function e(){Ee(this,e)}return Te(e,null,[{key:"encode",value:function(e){if(!/^[0-1]+$/.test(e))throw new hi("Invalid bitField");var t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";for(var n="",r=0;rt.value))break;if(null===t.right){t.right=n;break}t=t.right}}},{key:"get",value:function(){for(var e=[],t=this.root;t;)if(t.left){for(var n=t.left;n.right&&n.right!=t;)n=n.right;n.right==t?(n.right=null,e.push(t.value),t=t.right):(n.right=t,t=t.left)}else e.push(t.value),t=t.right;return e}},{key:"contains",value:function(e){for(var t=!1,n=this.root;n;){if(n.value===e){t=!0;break}e>n.value?n=n.right:e0&&void 0!==arguments[0]?arguments[0]:this.root;t;)t.left?t=t.left:(e=t.value,t=null);return e}},{key:"max",value:function(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root;t;)t.right?t=t.right:(e=t.value,t=null);return e}},{key:"remove",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,n=null,r="left";t;)if(et.value)n=t,t=t.right,r="right";else{if(t.left||t.right)if(t.left)if(t.right){var i=this.min(t.right);this.remove(i,t.right),t.value=i}else n?n[r]=t.left:this.root=t.left;else n?n[r]=t.right:this.root=t.right;else n?n[r]=null:this.root=null;t=null}}}],[{key:"build",value:function(e){if(e&&0!==e.length){if(1===e.length){var t=new n;return t.add(e[0]),t}var r=e.length>>1,i=new n;i.add(e[r]);var s=i.getRoot();if(s){if(r+10){var a=n.build(e.slice(0,r-1));s.left=a?a.getRoot():null}}return i}return null}}]),n}(),bi=function(){function e(){Ee(this,e)}return Te(e,[{key:"has",value:function(t){return e.langSet.has(t)}},{key:"forEach",value:function(t){e.langSet.forEach(t)}},{key:"size",get:function(){return e.langSet.size}}]),e}();we(bi,"langSet",new Set(["BG","CA","CS","DA","DE","EL","EN","ES","ET","FI","FR","HR","HU","IT","JA","LT","LV","MT","NL","NO","PL","PT","RO","RU","SK","SL","SV","TR","ZH"]));var Si,Ii=Te((function e(){Ee(this,e)}));we(Ii,"cmpId","cmpId"),we(Ii,"cmpVersion","cmpVersion"),we(Ii,"consentLanguage","consentLanguage"),we(Ii,"consentScreen","consentScreen"),we(Ii,"created","created"),we(Ii,"supportOOB","supportOOB"),we(Ii,"isServiceSpecific","isServiceSpecific"),we(Ii,"lastUpdated","lastUpdated"),we(Ii,"numCustomPurposes","numCustomPurposes"),we(Ii,"policyVersion","policyVersion"),we(Ii,"publisherCountryCode","publisherCountryCode"),we(Ii,"publisherCustomConsents","publisherCustomConsents"),we(Ii,"publisherCustomLegitimateInterests","publisherCustomLegitimateInterests"),we(Ii,"publisherLegitimateInterests","publisherLegitimateInterests"),we(Ii,"publisherConsents","publisherConsents"),we(Ii,"publisherRestrictions","publisherRestrictions"),we(Ii,"purposeConsents","purposeConsents"),we(Ii,"purposeLegitimateInterests","purposeLegitimateInterests"),we(Ii,"purposeOneTreatment","purposeOneTreatment"),we(Ii,"specialFeatureOptins","specialFeatureOptins"),we(Ii,"useNonStandardStacks","useNonStandardStacks"),we(Ii,"vendorConsents","vendorConsents"),we(Ii,"vendorLegitimateInterests","vendorLegitimateInterests"),we(Ii,"vendorListVersion","vendorListVersion"),we(Ii,"vendorsAllowed","vendorsAllowed"),we(Ii,"vendorsDisclosed","vendorsDisclosed"),we(Ii,"version","version"),function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(Si||(Si={}));var Ci=function(e){Oe(n,yi);var t=ke(n);function n(e,r){var i;return Ee(this,n),we(Ue(i=t.call(this)),"purposeId_",void 0),we(Ue(i),"restrictionType",void 0),void 0!==e&&(i.purposeId=e),void 0!==r&&(i.restrictionType=r),i}return Te(n,[{key:"hash",get:function(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return"".concat(this.purposeId).concat(n.hashSeparator).concat(this.restrictionType)}},{key:"purposeId",get:function(){return this.purposeId_},set:function(e){this.purposeId_=e}},{key:"isValid",value:function(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===Si.NOT_ALLOWED||this.restrictionType===Si.REQUIRE_CONSENT||this.restrictionType===Si.REQUIRE_LI)}},{key:"isSameAs",value:function(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}],[{key:"unHash",value:function(e){var t=e.split(this.hashSeparator),r=new n;if(2!==t.length)throw new vi("hash",e);return r.purposeId=parseInt(t[0],10),r.restrictionType=parseInt(t[1],10),r}}]),n}();we(Ci,"hashSeparator","-");var Ei,Ai,Ti,wi=function(e){Oe(n,yi);var t=ke(n);function n(){var e;Ee(this,n);for(var r=arguments.length,i=new Array(r),s=0;se.restrictionType)&&(n=e.restrictionType)})),n}},{key:"vendorHasRestriction",value:function(e,t){for(var n=!1,r=this.getRestrictions(e),i=0;i0}},{key:"isSet",value:function(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}},{key:"set",value:function(e){var t=this;if(Array.isArray(e))e.forEach((function(e){return t.set(e)}));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map((function(e){return Number(e)})));else{if(!this.isValidNumber(e))throw new vi("set()",e,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}},{key:"empty",value:function(){this.set_=new Set}},{key:"forEach",value:function(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)}},{key:"size",get:function(){return this.set_.size}},{key:"setAll",value:function(e){this.set(e)}}]),n}();Ri=Ii.cmpId,Ni=Ii.cmpVersion,Di=Ii.consentLanguage,Pi=Ii.consentScreen,Ui=Ii.created,ki=Ii.isServiceSpecific,Vi=Ii.lastUpdated,xi=Ii.policyVersion,Fi=Ii.publisherCountryCode,Bi=Ii.publisherLegitimateInterests,Mi=Ii.publisherConsents,Gi=Ii.purposeConsents,Hi=Ii.purposeLegitimateInterests,$i=Ii.purposeOneTreatment,ji=Ii.specialFeatureOptins,Yi=Ii.useNonStandardStacks,Wi=Ii.vendorListVersion,zi=Ii.version;var Ki=Te((function e(){Ee(this,e)}));we(Ki,Ri,12),we(Ki,Ni,12),we(Ki,Di,12),we(Ki,Pi,6),we(Ki,Ui,36),we(Ki,ki,1),we(Ki,Vi,36),we(Ki,xi,6),we(Ki,Fi,12),we(Ki,Bi,24),we(Ki,Mi,24),we(Ki,Gi,24),we(Ki,Hi,24),we(Ki,$i,1),we(Ki,ji,12),we(Ki,Yi,1),we(Ki,Wi,12),we(Ki,zi,6),we(Ki,"anyBoolean",1),we(Ki,"encodingType",1),we(Ki,"maxId",16),we(Ki,"numCustomPurposes",6),we(Ki,"numEntries",12),we(Ki,"numRestrictions",12),we(Ki,"purposeId",6),we(Ki,"restrictionType",2),we(Ki,"segmentType",3),we(Ki,"singleOrRange",1),we(Ki,"vendorId",16);var qi,Xi=function(){function e(){Ee(this,e)}return Te(e,null,[{key:"encode",value:function(e){return String(Number(e))}},{key:"decode",value:function(e){return"1"===e}}]),e}(),Qi=function(){function e(){Ee(this,e)}return Te(e,null,[{key:"encode",value:function(e,t){var n;if("string"==typeof e&&(e=parseInt(e,10)),(n=e.toString(2)).length>t||e<0)throw new hi("".concat(e," too large to encode into ").concat(t));return n.length25||r<0||r>25)throw new hi("invalid language code: ".concat(e));if(t%2==1)throw new hi("numBits must be even, ".concat(t," is not valid"));return t/=2,Qi.encode(n,t)+Qi.encode(r,t)}},{key:"decode",value:function(e,t){if(t!==e.length||e.length%2)throw new fi("invalid bit length for language");var n=e.length/2,r=Qi.decode(e.slice(0,n),n)+65,i=Qi.decode(e.slice(n),n)+65;return String.fromCharCode(r)+String.fromCharCode(i)}}]),e}(),ns=function(){function e(){Ee(this,e)}return Te(e,null,[{key:"encode",value:function(e){var t=Qi.encode(e.numRestrictions,Ki.numRestrictions);return e.isEmpty()||e.getRestrictions().forEach((function(n){t+=Qi.encode(n.purposeId,Ki.purposeId),t+=Qi.encode(n.restrictionType,Ki.restrictionType);for(var r=e.getVendors(n),i=r.length,s=0,o=0,a="",c=function(){var t=r[u];0===o&&(s++,o=t);var n=r[i-1],c=e.gvl.vendorIds;if(u===i-1||r[u+1]>function(e){for(;++e<=n&&!c.has(e););return e}(t)){var l=!(t===o);a+=Xi.encode(l),a+=Qi.encode(o,Ki.vendorId),l&&(a+=Qi.encode(t,Ki.vendorId)),o=0}},u=0;uc&&u0&&this[2].push(Ai.VENDORS_ALLOWED),this[2].push(Ai.PUBLISHER_TC))}})),as=function(){function e(){Ee(this,e)}return Te(e,null,[{key:"encode",value:function(e,t){var n,r=this;try{n=this.fieldSequence[String(e.version)][t]}catch(n){throw new hi("Unable to encode version: ".concat(e.version,", segment: ").concat(t))}var i="";t!==Ai.CORE&&(i=Qi.encode(Li.KEY_TO_ID[t],Ki.segmentType));var s=is();return n.forEach((function(n){var o=e[n],a=s[n],c=Ki[n];void 0===c&&r.isPublisherCustom(n)&&(c=Number(e[Ii.numCustomPurposes]));try{i+=a.encode(o,c)}catch(e){throw new hi("Error encoding ".concat(t,"->").concat(n,": ").concat(e.message))}})),mi.encode(i)}},{key:"decode",value:function(e,t,n){var r=this,i=mi.decode(e),s=0;n===Ai.CORE&&(t.version=Qi.decode(i.substr(s,Ki[Ii.version]),Ki[Ii.version])),n!==Ai.CORE&&(s+=Ki.segmentType);var o=this.fieldSequence[String(t.version)][n],a=is();return o.forEach((function(e){var n=a[e],o=Ki[e];if(void 0===o&&r.isPublisherCustom(e)&&(o=Number(t[Ii.numCustomPurposes])),0!==o){var c=i.substr(s,o);if(t[e]=n===rs?n.decode(c,t.version):n.decode(c,o),Number.isInteger(o))s+=o;else{if(!Number.isInteger(t[e].bitLength))throw new fi(e);s+=t[e].bitLength}}})),t}},{key:"isPublisherCustom",value:function(e){return 0===e.indexOf("publisherCustom")}}]),e}();we(as,"fieldSequence",new ss);var cs=function(){function e(){Ee(this,e)}return Te(e,null,[{key:"process",value:function(e,t){var n=e.gvl;if(!n)throw new hi("Unable to encode TCModel without a GVL");if(!n.isReady)throw new hi("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=n.language.toUpperCase(),(null==t?void 0:t.version)>0&&(null==t?void 0:t.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var r=e.version-1;if(!this.processor[r])throw new hi("Invalid version: ".concat(e.version));return this.processor[r](e,n)}}]),e}();we(cs,"processor",[function(e){return e},function(e,t){e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset(1);var n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach((function(n,r){n.forEach((function(i,s){if(i){var o=t.vendors[s];if(!o||o.deletedDate)n.unset(s);else if(0===o[r].length)if("legIntPurposes"===r&&0===o.purposes.length&&0===o.legIntPurposes.length&&o.specialPurposes.length>0);else if(e.isServiceSpecific)if(0===o.flexiblePurposes.length)n.unset(s);else{for(var a=e.publisherRestrictions.getRestrictions(s),c=!1,u=0,l=a.length;u=200&&o.status<300){var e=o.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}i(e)}else s(new Error("HTTP Status: ".concat(o.status," response type: ").concat(o.responseType)))})),o.addEventListener("error",(function(){s(new Error("error"))})),o.addEventListener("abort",(function(){s(new Error("aborted"))})),null===t?o.open("GET",e,!0):o.open("POST",e,!0),o.responseType="json",o.timeout=r,o.ontimeout=function(){s(new Error("Timeout "+r+"ms "+e))},o.send(t)}))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(e,JSON.stringify(t),n,r)}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(e,null,t,n)}}]),e}(),ls=function(e){Oe(i,yi);var t,n,r=ke(i);function i(e){var t;Ee(this,i),we(Ue(t=r.call(this)),"readyPromise",void 0),we(Ue(t),"gvlSpecificationVersion",void 0),we(Ue(t),"vendorListVersion",void 0),we(Ue(t),"tcfPolicyVersion",void 0),we(Ue(t),"lastUpdated",void 0),we(Ue(t),"purposes",void 0),we(Ue(t),"specialPurposes",void 0),we(Ue(t),"features",void 0),we(Ue(t),"specialFeatures",void 0),we(Ue(t),"isReady_",!1),we(Ue(t),"vendors_",void 0),we(Ue(t),"vendorIds",void 0),we(Ue(t),"fullVendorList",void 0),we(Ue(t),"byPurposeVendorMap",void 0),we(Ue(t),"bySpecialPurposeVendorMap",void 0),we(Ue(t),"byFeatureVendorMap",void 0),we(Ue(t),"bySpecialFeatureVendorMap",void 0),we(Ue(t),"stacks",void 0),we(Ue(t),"lang_",void 0),we(Ue(t),"isLatest",!1);var n=i.baseUrl;if(t.lang_=i.DEFAULT_LANGUAGE,t.isVendorList(e))t.populate(e),t.readyPromise=Promise.resolve();else{if(!n)throw new gi("must specify GVL.baseUrl before loading GVL json");if(e>0){var s=e;i.CACHE.has(s)?(t.populate(i.CACHE.get(s)),t.readyPromise=Promise.resolve()):(n+=i.versionedFilename.replace("[VERSION]",String(s)),t.readyPromise=t.fetchJson(n))}else i.CACHE.has(i.LATEST_CACHE_KEY)?(t.populate(i.CACHE.get(i.LATEST_CACHE_KEY)),t.readyPromise=Promise.resolve()):(t.isLatest=!0,t.readyPromise=t.fetchJson(n+i.latestFilename))}return t}return Te(i,[{key:"cacheLanguage",value:function(){i.LANGUAGE_CACHE.has(this.lang_)||i.LANGUAGE_CACHE.set(this.lang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks})}},{key:"fetchJson",value:(n=Ce(be().mark((function e(t){return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=this,e.next=4,us.fetch(t);case 4:e.t1=e.sent,e.t0.populate.call(e.t0,e.t1),e.next=11;break;case 8:throw e.prev=8,e.t2=e.catch(0),new gi(e.t2.message);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(e){return n.apply(this,arguments)})},{key:"getJson",value:function(){return JSON.parse(JSON.stringify({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,vendors:this.fullVendorList}))}},{key:"changeLanguage",value:(t=Ce(be().mark((function e(t){var n,r,s,o;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.toUpperCase(),!i.consentLanguages.has(n)){e.next=21;break}if(n===this.lang_){e.next=19;break}if(this.lang_=n,!i.LANGUAGE_CACHE.has(n)){e.next=9;break}for(s in r=i.LANGUAGE_CACHE.get(n))r.hasOwnProperty(s)&&(this[s]=r[s]);e.next=19;break;case 9:return o=i.baseUrl+i.languageFilename.replace("[LANG]",t),e.prev=10,e.next=13,this.fetchJson(o);case 13:this.cacheLanguage(),e.next=19;break;case 16:throw e.prev=16,e.t0=e.catch(10),new gi("unable to load language: "+e.t0.message);case 19:e.next=22;break;case 21:throw new gi("unsupported language ".concat(t));case 22:case"end":return e.stop()}}),e,this,[[10,16]])}))),function(e){return t.apply(this,arguments)})},{key:"language",get:function(){return this.lang_}},{key:"isVendorList",value:function(e){return void 0!==e&&void 0!==e.vendors}},{key:"populate",value:function(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.dataCategories=e.dataCategories,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&i.CACHE.set(i.LATEST_CACHE_KEY,this.getJson()),i.CACHE.has(this.vendorListVersion)||i.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}},{key:"mapVendors",value:function(e){var t=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((function(e){t.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}})),Object.keys(this.specialPurposes).forEach((function(e){t.bySpecialPurposeVendorMap[e]=new Set})),Object.keys(this.features).forEach((function(e){t.byFeatureVendorMap[e]=new Set})),Object.keys(this.specialFeatures).forEach((function(e){t.bySpecialFeatureVendorMap[e]=new Set})),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map((function(e){return+e}))),this.vendorIds=new Set(e),this.vendors_=e.reduce((function(e,n){var r=t.vendors_[String(n)];return r&&void 0===r.deletedDate&&(r.purposes.forEach((function(e){t.byPurposeVendorMap[String(e)].consent.add(n)})),r.specialPurposes.forEach((function(e){t.bySpecialPurposeVendorMap[String(e)].add(n)})),r.legIntPurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].legInt.add(n)})),r.flexiblePurposes&&r.flexiblePurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].flexible.add(n)})),r.features.forEach((function(e){t.byFeatureVendorMap[String(e)].add(n)})),r.specialFeatures.forEach((function(e){t.bySpecialFeatureVendorMap[String(e)].add(n)})),e[n]=r),e}),{})}},{key:"getFilteredVendors",value:function(e,t,n,r){var i=this,s=e.charAt(0).toUpperCase()+e.slice(1),o={};return("purpose"===e&&n?this["by"+s+"VendorMap"][String(t)][n]:this["by"+(r?"Special":"")+s+"VendorMap"][String(t)]).forEach((function(e){o[String(e)]=i.vendors[String(e)]})),o}},{key:"getVendorsWithConsentPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"consent")}},{key:"getVendorsWithLegIntPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"legInt")}},{key:"getVendorsWithFlexiblePurpose",value:function(e){return this.getFilteredVendors("purpose",e,"flexible")}},{key:"getVendorsWithSpecialPurpose",value:function(e){return this.getFilteredVendors("purpose",e,void 0,!0)}},{key:"getVendorsWithFeature",value:function(e){return this.getFilteredVendors("feature",e)}},{key:"getVendorsWithSpecialFeature",value:function(e){return this.getFilteredVendors("feature",e,void 0,!0)}},{key:"vendors",get:function(){return this.vendors_}},{key:"narrowVendorsTo",value:function(e){this.mapVendors(e)}},{key:"isReady",get:function(){return this.isReady_}},{key:"clone",value:function(){var e=new i(this.getJson());return this.lang_!==i.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}}],[{key:"baseUrl",get:function(){return this.baseUrl_},set:function(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new gi("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}},{key:"emptyLanguageCache",value:function(e){var t=!1;return void 0===e&&i.LANGUAGE_CACHE.size>0?(i.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(i.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}},{key:"emptyCache",value:function(e){var t=!1;return Number.isInteger(e)&&e>=0?(i.CACHE.delete(e),t=!0):void 0===e&&(i.CACHE=new Map,t=!0),t}},{key:"isInstanceOf",value:function(e){return"object"===Se(e)&&"function"==typeof e.narrowVendorsTo}}]),i}();we(ls,"LANGUAGE_CACHE",new Map),we(ls,"CACHE",new Map),we(ls,"LATEST_CACHE_KEY",0),we(ls,"DEFAULT_LANGUAGE","EN"),we(ls,"consentLanguages",new bi),we(ls,"baseUrl_",void 0),we(ls,"latestFilename","vendor-list.json"),we(ls,"versionedFilename","archives/vendor-list-v[VERSION].json"),we(ls,"languageFilename","purposes-[LANG].json");var ds=function(e){Oe(n,yi);var t=ke(n);function n(e){var r;return Ee(this,n),we(Ue(r=t.call(this)),"isServiceSpecific_",!1),we(Ue(r),"supportOOB_",!0),we(Ue(r),"useNonStandardStacks_",!1),we(Ue(r),"purposeOneTreatment_",!1),we(Ue(r),"publisherCountryCode_","AA"),we(Ue(r),"version_",2),we(Ue(r),"consentScreen_",0),we(Ue(r),"policyVersion_",2),we(Ue(r),"consentLanguage_","EN"),we(Ue(r),"cmpId_",0),we(Ue(r),"cmpVersion_",0),we(Ue(r),"addtlConsent_",""),we(Ue(r),"enableAdvertiserConsentMode_",!1),we(Ue(r),"vendorListVersion_",0),we(Ue(r),"numCustomPurposes_",0),we(Ue(r),"gvl_",void 0),we(Ue(r),"created",void 0),we(Ue(r),"lastUpdated",void 0),we(Ue(r),"specialFeatureOptins",new Ji),we(Ue(r),"purposeConsents",new Ji),we(Ue(r),"purposeLegitimateInterests",new Ji),we(Ue(r),"publisherConsents",new Ji),we(Ue(r),"publisherLegitimateInterests",new Ji),we(Ue(r),"publisherCustomConsents",new Ji),we(Ue(r),"publisherCustomLegitimateInterests",new Ji),we(Ue(r),"customPurposes",void 0),we(Ue(r),"vendorConsents",new Ji),we(Ue(r),"vendorLegitimateInterests",new Ji),we(Ue(r),"vendorsDisclosed",new Ji),we(Ue(r),"vendorsAllowed",new Ji),we(Ue(r),"publisherRestrictions",new wi),e&&(r.gvl=e),r.updated(),r}return Te(n,[{key:"gvl",get:function(){return this.gvl_},set:function(e){ls.isInstanceOf(e)||(e=new ls(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}},{key:"cmpId",get:function(){return this.cmpId_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>1))throw new vi("cmpId",e);this.cmpId_=e}},{key:"cmpVersion",get:function(){return this.cmpVersion_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new vi("cmpVersion",e);this.cmpVersion_=e}},{key:"enableAdvertiserConsentMode",get:function(){return this.enableAdvertiserConsentMode_},set:function(e){this.enableAdvertiserConsentMode_=!0===e}},{key:"addtlConsent",get:function(){return this.addtlConsent_},set:function(e){this.addtlConsent_=e}},{key:"consentScreen",get:function(){return this.consentScreen_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new vi("consentScreen",e);this.consentScreen_=e}},{key:"consentLanguage",get:function(){return this.consentLanguage_},set:function(e){this.consentLanguage_=e}},{key:"publisherCountryCode",get:function(){return this.publisherCountryCode_},set:function(e){if(!/^([A-z]){2}$/.test(e))throw new vi("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}},{key:"vendorListVersion",get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(e){if((e=Number(e)>>0)<0)throw new vi("vendorListVersion",e);this.vendorListVersion_=e}},{key:"policyVersion",get:function(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_},set:function(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new vi("policyVersion",e)}},{key:"version",get:function(){return this.version_},set:function(e){this.version_=parseInt(e,10)}},{key:"isServiceSpecific",get:function(){return this.isServiceSpecific_},set:function(e){this.isServiceSpecific_=e}},{key:"useNonStandardStacks",get:function(){return this.useNonStandardStacks_},set:function(e){this.useNonStandardStacks_=e}},{key:"supportOOB",get:function(){return this.supportOOB_},set:function(e){this.supportOOB_=e}},{key:"purposeOneTreatment",get:function(){return this.purposeOneTreatment_},set:function(e){this.purposeOneTreatment_=e}},{key:"setAllVendorConsents",value:function(){this.vendorConsents.set(this.gvl.vendors)}},{key:"unsetAllVendorConsents",value:function(){this.vendorConsents.empty()}},{key:"setAllVendorsDisclosed",value:function(){this.vendorsDisclosed.set(this.gvl.vendors)}},{key:"unsetAllVendorsDisclosed",value:function(){this.vendorsDisclosed.empty()}},{key:"setAllVendorsAllowed",value:function(){this.vendorsAllowed.set(this.gvl.vendors)}},{key:"unsetAllVendorsAllowed",value:function(){this.vendorsAllowed.empty()}},{key:"setAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.set(this.gvl.vendors)}},{key:"unsetAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.empty()}},{key:"setAllPurposeConsents",value:function(){this.purposeConsents.set(this.gvl.purposes)}},{key:"unsetAllPurposeConsents",value:function(){this.purposeConsents.empty()}},{key:"setAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.set(this.gvl.purposes)}},{key:"unsetAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.empty()}},{key:"setAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}},{key:"unsetAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.empty()}},{key:"setAll",value:function(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}},{key:"unsetAll",value:function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}},{key:"numCustomPurposes",get:function(){var e=this.numCustomPurposes_;if("object"===Se(this.customPurposes)){var t=Object.keys(this.customPurposes).sort((function(e,t){return Number(e)-Number(t)}));e=parseInt(t.pop(),10)}return e},set:function(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new vi("numCustomPurposes",e)}},{key:"updated",value:function(){var e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}]),n}();we(ds,"consentLanguages",ls.consentLanguages);var ps,fs,hs,gs,vs,ms,ys=function(){function e(){Ee(this,e)}return Te(e,null,[{key:"encode",value:function(e,t){var n,r="";return e=cs.process(e,t),(n=Array.isArray(null==t?void 0:t.segments)?t.segments:new os(e,t)[""+e.version]).forEach((function(t,i){var s="";i-1&&y.push(n),!1)}));break;case Si.REQUIRE_CONSENT:y=y.filter((function(n){return n.id!==t.purposeId||(e.flexiblePurposes.indexOf(n.id)>-1&&_.push(n),!1)}));break;case Si.NOT_ALLOWED:_=v.filter((function(e){return e.id!==t.purposeId})),y=g.filter((function(e){return e.id!==t.purposeId}))}}));var b="",S="";e.urls&&e.urls.forEach((function(e){var t=e.langId,n=e.legIntClaim,r=e.privacy,i=t&&a.language&&t.toLowerCase()===a.language.toLowerCase();r&&(b&&!i||(b=r)),n&&(S&&!i||(S=n))}));var I,C=s.includes(e.id),E=null===(c=e.dataDeclaration)||void 0===c?void 0:c.reduce((function(e,t){var n=a.dataCategories;if(n&&n[t]){var r=at({id:t.toString()},n[t]);return e?dt(dt([],lt(e),!1),[r],!1):[r]}return e}),[]);e.dataRetention&&e.dataRetention.stdRetention&&(I=[{id:e.dataRetention.stdRetention.toString(),name:e.dataRetention.stdRetention.toString()}]);var A=jt(e.specialFeatures.filter((function(e){return!t.includes(e)})),a.specialFeatures);return at(at(at({consent:m?u.has(e.id):null,cookieMaxAgeSeconds:e.cookieMaxAgeSeconds&&e.cookieMaxAgeSeconds>=0?e.cookieMaxAgeSeconds:null,cookieRefresh:Gt(e.cookieRefresh,null)},E&&{dataCategories:E}),I&&{dataRetention:I}),{deviceStorage:null,deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl||null,features:e.features.map((function(e){return{id:e,name:a.features[e].name}})),flexiblePurposes:jt(e.flexiblePurposes,a.purposes),id:e.id,legitimateInterestClaimUrl:S,legitimateInterestConsent:m?l.has(e.id):null,legitimateInterestPurposes:y,name:e.name,policyUrl:e.policyUrl,privacyUrl:b,purposes:_s(_,null===(f=e.dataRetention)||void 0===f?void 0:f.purposes,o),showConsentToggle:_.length>0&&n,showLegitimateInterestConsentToggle:y.length>0&&n&&!r,showVendorOutsideEU:C,specialFeatures:A,specialPurposes:_s(jt(e.specialPurposes,a.specialPurposes),null===(h=e.dataRetention)||void 0===h?void 0:h.specialPurposes,o),usesCookies:Gt(e.usesCookies,!1),usesNonCookieAccess:Gt(e.usesNonCookieAccess,null)})}))},Ss=function(e){return{legitimateInterestPurposes:(null==e?void 0:e.legIntPurposes)||[],purposes:(null==e?void 0:e.purposes)||[]}},Is=function(e){return e||"/browser-sdk/".concat(mt,"/cookie-bridge.html")},Cs=function(e){return e||"https://usercentrics.mgr.consensu.org:443"},Es=function(e,t){if(!t||0===e.length)return[];var n=function(e){return Yt(e.reduce((function(e,t){return e.concat(t.features.map((function(e){return e.id})))}),[]))}(e);return n.reduce((function(e,n){var r=t[n];return r?dt(dt([],lt(e),!1),[r],!1):e}),[])},As=function(e,t){return!e||!t},Ts=function(e,t){return void 0===t&&(t=kt.fetchTCFVendorsDisclosedObject()),!0===t[e]},ws=function(e,t,n,r,i){var s=t.reduce((function(e,t){return e.concat(t.purposes.map((function(e){return e.id}))).concat(t.legitimateInterestPurposes.map((function(e){return e.id})))}),[]),o=Ps(e,n,r).reduce((function(e,t){return e.concat(t.purposeIds)}),[]),a=Yt(s.concat(o));return i?a.filter((function(e){return 1!==e})):a},Os=function(e,t,n,r,i,s,o,a,c){if(!e||!t||!n)return[];var u=ws(t,r,i,s,o),l=Ps(t,i,s),d=kt.fetchTCFData().vendors,p=e.purposeConsents,f=e.purposeLegitimateInterests,h=Yt(r.map((function(e){return e.legitimateInterestPurposes.map((function(e){return e.id}))})).reduce((function(e,t){return e.concat(t)}),[])),g=Yt(r.map((function(e){return e.purposes.map((function(e){return e.id}))})).reduce((function(e,t){return e.concat(t)}),[])),v=u.reduce((function(e,t){var n,i=r.filter((function(e){return e.purposes.find((function(e){return e.id===t}))})),s=r.filter((function(e){return e.legitimateInterestPurposes.find((function(e){return e.id===t}))}));return at(at({},e),((n={})[t]=i.length+s.length,n))}),{});return u.reduce((function(e,t){var r=n[t];if(!r)return e;var i=l.find((function(e){return e.purposeIds.includes(t)}));return dt(dt([],lt(e),!1),[{consent:d.length?p.has(t):null,description:r.description,descriptionLegal:r.descriptionLegal,id:r.id,illustrations:r.illustrations,isPartOfASelectedStack:!!i,legitimateInterestConsent:d.length?f.has(t):null,name:r.name,numberOfVendors:v[r.id]||0,showConsentToggle:g.includes(t)&&a,showLegitimateInterestToggle:1!==r.id&&h.includes(t)&&a&&!c,stackId:(null==i?void 0:i.id)||null}],!1)}),[])},Ls=function(e){return{onIABLegalBasisChanged:e.resurfaceIABLegalBasisChanged,onPeriodEnded:e.resurfacePeriodEnded,onPurposeChanged:e.resurfacePurposeChanged,onVendorAdded:e.resurfaceVendorAdded}},Rs=function(e,t,n,r){var i=t.reduce((function(e,t){return e.concat(t.specialFeatures.filter((function(e){return!n.includes(e.id)})).map((function(e){return e.id})))}),[]),s=Ps(e,n,r).reduce((function(e,t){return e.concat(t.specialFeatureIds.filter((function(e){return!n.includes(e)})))}),[]);return Yt(i.concat(s))},Ns=function(e,t,n,r,i,s){if(!e||!t)return[];var o=Rs(t.stacks,n,r,i),a=Ps(t.stacks,r,i);return o.map((function(n){var r=t.specialFeatures[n],i=a.find((function(e){return e.specialFeatureIds.includes(n)}));return{consent:e.specialFeatureOptins.has(n),description:r.description,descriptionLegal:r.descriptionLegal,id:r.id,illustrations:r.illustrations,isPartOfASelectedStack:!!i,name:r.name,showConsentToggle:s,stackId:(null==i?void 0:i.id)||null}}))},Ds=function(e,t){if(!e)return[];var n=function(e){return Yt(e.reduce((function(e,t){return e.concat(t.specialPurposes.map((function(e){return e.id})))}),[]))}(t);return n.reduce((function(t,n){var r=e[n];return r?dt(dt([],lt(t),!1),[{description:r.description,descriptionLegal:r.descriptionLegal,id:r.id,illustrations:r.illustrations,name:r.name}],!1):t}),[])},Ps=function(e,t,n){return e?n.reduce((function(n,r){var i=e[r];return i?dt(dt([],lt(n),!1),[{description:i.description,id:i.id,name:i.name,purposeIds:i.purposes,specialFeatureIds:i.specialFeatures.filter((function(e){return!t.includes(e)}))}],!1):n}),[]):[]},Us=function(e){return(null==e?void 0:e.getRestrictions().map((function(e){return{purposeId:e.purposeId,restrictionType:e.restrictionType}})))||[]},ks=function(e){return!!(null==e?void 0:e.timestamp)&&(Date.now()-e.timestamp)/864e5>365},Vs=function(e,t){if(!(null==e?void 0:e.tcString))return!1;var n=ys.decode(e.tcString);return n.version!==(null==t?void 0:t.version)||n.policyVersion!==t.policyVersion},xs=function(e,t){return!(!(null==e?void 0:e.vendors)||!(null==e?void 0:e.vendors.length)||t.every((function(t){return null==e?void 0:e.vendors.find((function(e){return e[At.ID]===t.id}))})))},Fs=function(e,t){return!(!(null==e?void 0:e.vendors)||!e.vendors.length||e.vendors.length&&!e.vendors[0][At.SPECIAL_PURPOSES]||e.vendors.every((function(e){var n=t.find((function(t){return t.id===e[At.ID]}));return!n||e[At.PURPOSES].sort().toString()===n.purposes.map((function(e){return e.id})).sort().toString()&&e[At.LEGITIMATE_INTEREST].sort().toString()===n.legitimateInterestPurposes.map((function(e){return e.id})).sort().toString()&&e[At.SPECIAL_PURPOSES].sort().toString()===n.specialPurposes.map((function(e){return e.id})).sort().toString()})))},Bs=function(e){return e.map((function(e){var t=e.id,n=e.legitimateInterestPurposes,r=e.purposes,i=e.specialPurposes;return[t,n.map((function(e){return e.id})),r.map((function(e){return e.id})),i.map((function(e){return e.id}))]}))},Ms=function(e){if(ls.consentLanguages.has(e.toLocaleLowerCase())||ls.consentLanguages.has(e.toUpperCase()))return e;var t=e.slice(0,2);return ls.consentLanguages.has(t.toLocaleLowerCase())||ls.consentLanguages.has(t.toUpperCase())?t:Cr},Gs=function(e){if(e&&e.source&&e.source.postMessage){var t="string"==typeof e.data,n=e.data;if(t)try{n=JSON.parse(e.data)}catch(e){return}if("object"===Se(n)&&n.__tcfapiCall){var r=n.__tcfapiCall;window.__tcfapi(r.command,r.version,(function(n,i){var s={__tcfapiReturn:{returnValue:n,success:i,callId:r.callId}},o=t?JSON.stringify(s):s;try{e.source.postMessage(o,"*")}catch(e){}}),r.parameter)}}},Hs=[],$s=function(e,t,n,r){if(!e)return Hs;switch(e){case"ping":"function"==typeof n&&n(!0,!1,"stub");break;case"pending":return Hs;default:Hs.push([e,t,n,r])}},js="__tcfapiLocator",Ys=function(){"undefined"!=typeof window&&(window.__tcfapi||!function(){for(var e=window,t=!1;e;){try{if(e.frames[js]){t=!0;break}}catch(e){}if(e===window.top){t=!1;break}e=e.parent}return t}()&&(sn((function(){return!!window.document.body}),"").then((function(){var e=window.document.createElement("iframe");e.style.cssText="display:none",e.name=js,window.document.body.appendChild(e)})),1)&&(window.addEventListener("message",Gs,!1),window.__tcfapi=$s))};!function(e){e.ACCEPT_ALL_SERVICES="onAcceptAllServices",e.DENY_ALL_SERVICES="onDenyAllServices",e.ESSENTIAL_CHANGE="onEssentialChange",e.INITIAL_PAGE_LOAD="onInitialPageLoad",e.NON_EU_REGION="onNonEURegion",e.SESSION_RESTORED="onSessionRestored",e.TCF_STRING_CHANGE="onTcfStringChange",e.UPDATE_SERVICES="onUpdateServices",e.MOBILE_SESSION_RESTORED="onMobileSessionRestore"}(ps||(ps={})),function(e){e.EXPLICIT="explicit",e.IMPLICIT="implicit"}(fs||(fs={})),function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.CMP_SHOWN=1]="CMP_SHOWN",e[e.ACCEPT_ALL=2]="ACCEPT_ALL",e[e.DENY_ALL=3]="DENY_ALL",e[e.SAVE=4]="SAVE",e[e.ACCEPT_ALL_L1=5]="ACCEPT_ALL_L1",e[e.DENY_ALL_L1=6]="DENY_ALL_L1",e[e.SAVE_L1=7]="SAVE_L1",e[e.ACCEPT_ALL_L2=8]="ACCEPT_ALL_L2",e[e.DENY_ALL_L2=9]="DENY_ALL_L2",e[e.SAVE_L2=10]="SAVE_L2",e[e.COOKIE_POLICY_LINK=11]="COOKIE_POLICY_LINK",e[e.IMPRINT_LINK=12]="IMPRINT_LINK",e[e.MORE_INFORMATION_LINK=13]="MORE_INFORMATION_LINK",e[e.PRIVACY_POLICY_LINK=14]="PRIVACY_POLICY_LINK",e[e.CCPA_TOGGLES_ON=15]="CCPA_TOGGLES_ON",e[e.CCPA_TOGGLES_OFF=16]="CCPA_TOGGLES_OFF",e[e.SAY_MINE_LINK=17]="SAY_MINE_LINK"}(hs||(hs={})),function(e){e.API_NAME="__uspapi",e.GET_USP_DATA="getUSPData"}(gs||(gs={})),function(e){e[e.FIRST_LAYER=0]="FIRST_LAYER",e[e.NONE=1]="NONE",e[e.PRIVACY_BUTTON=2]="PRIVACY_BUTTON",e[e.SECOND_LAYER=3]="SECOND_LAYER"}(vs||(vs={})),function(e){e[e.CCPA=0]="CCPA",e[e.DEFAULT=1]="DEFAULT",e[e.TCF=2]="TCF"}(ms||(ms={})),void 0!==pi&&pi.initialize({modulePath:"/dir"});var Ws=function(){function e(e,t){var n;if(this.ampInstance=Nn.getInstance(),this.apiInstance=lr.getInstance(),this.botInstance=vr.getInstance(),this.controllerIdInstance=tr.getInstance(),this.dataFacadeInstance=ni.getInstance(),this.eventDispatcherInstance=br.getInstance(),this.initOptions={},this.isConsentRequired=null,this.languageInstance=ai.getInstance(),this.storageServiceInstance=kt.getInstance(),this.locationInstance=rr.getInstance(),this.settingsV2=ti.getInstance(),this.uiInstance=di.getInstance(),this.domains=null,this.rulesetRule={name:"",noShow:!0,settingsId:""},this.isCurrentDomainAllowed=function(e){var t,n=window.location.hostname.replace("www.",""),r=window.location.pathname,i=null===(t=e.allowedDomainOptions)||void 0===t?void 0:t.list;if((null==i?void 0:i.length)&&(i=i.filter((function(e){return"string"==typeof e&&""!==e.trim()})).map((function(e){return e.trim()}))),!(null==i?void 0:i.length))return!0;var s=i.concat(vt),o=!1;return s.forEach((function(e){if(e.includes("*")){if("*."===e.slice(0,2))n.includes(e.slice(2))&&(o=!0);else if("/*"===e.slice(-2)){var t=e.slice(0,-2);t.split("/")[0]===n&&(n+r).includes(t)&&(o=!0)}}else e.includes("/")?n+r===e&&(o=!0):n===e&&(o=!0)})),o},t&&(this.initOptions=t),this.apiInstance.setEuMode(!0===(null==t?void 0:t.euMode)),this.domains=(n=window.UC_UI_DOMAINS)?Object.entries(n).reduce((function(e,t){var n,r,i=t[0],s=t[1];return"/"===s.slice(-1)?at(at({},e),((n={})[i]=s.slice(0,-1),n)):at(at({},e),((r={})[i]=s,r))}),{aggregator:"",app:"",cdn:"",consents:"",consentsV2:"",consentsV2Fetch:"",crossDomainConsentSharingIFrame:"",graphql:"",trackingEvent:""}):null,this.apiInstance.setDomains(!0===(null==t?void 0:t.sandboxEnv),this.domains),(null==t?void 0:t.createTcfApiStub)&&Ys(),(null==t?void 0:t.useRulesetId)?this.apiInstance.setRulesetId(e):this.apiInstance.setSettingsId(e),this.controllerIdInstance.value="",(null==t?void 0:t.controllerId)&&!(null==t?void 0:t.useRulesetId)&&(this.controllerIdInstance.value=t.controllerId),(null==t?void 0:t.language)&&this.languageInstance.setPrimaryLanguage(t.language),(null==t?void 0:t.settingsCache)&&this.apiInstance.setJsonCacheBustingString(t.settingsCache),(null==t?void 0:t.version)&&this.apiInstance.setJsonFileVersion(t.version),(null==t?void 0:t.userCountryData)&&"object"===Se(t.userCountryData)&&Object.keys(t.userCountryData).every((function(e){return"string"==typeof e}))&&this.locationInstance.setUserCountryData(t.userCountryData),(null==t?void 0:t.userSessionData)&&this.dataFacadeInstance.setUserSessionData(t.userSessionData),(null==t?void 0:t.ampEnabled)&&this.ampInstance.setIsAmpEnabled(!0),(null==t?void 0:t.blockDataLayerPush)&&this.eventDispatcherInstance.setBlockDataLayerPush(!0),(null==t?void 0:t.storeServiceIdToNameMapping)&&this.storageServiceInstance.setStoreServiceIdToNameMapping(null==t?void 0:t.storeServiceIdToNameMapping),(null==t?void 0:t.disableTracking)&&(this.initOptions.disableTracking=!0),(null==t?void 0:t.disableServerConsents)&&this.apiInstance.setDisableServerConsents(!0),(null==t?void 0:t.disableServerConsents)&&(null==t?void 0:t.controllerId))throw new Error("Usercentrics: disableServerConsents and controllerId should not be present at the same time in the InitOptions!");(null==t?void 0:t.enableDeprecatedV1ConsentSaving)&&(this.initOptions.enableDeprecatedV1ConsentSaving=t.enableDeprecatedV1ConsentSaving),this.initOptions.prefetchServices=Gt(null==t?void 0:t.prefetchServices,!0),this.setTrackingPixel=this.setTrackingPixel.bind(this)}return e.prototype.fetchCoreAndDps=function(){return ct(this,void 0,void 0,(function(){var e,t,n;return ut(this,(function(r){switch(r.label){case 0:return[4,this.loadSettings()];case 1:return e=r.sent(),t={allowedDomainOptions:{list:(i=e).allowedDomains,showErrorCmp:i.showErrorOnUnallowedDomain},buttonDisplayLocation:i.buttonDisplayLocation,buttonPrivacyCloseIcon:i.buttonPrivacyCloseIcon,buttonPrivacyOpenIconUrl:i.buttonPrivacyOpenIconUrl,ccpa:(a=i.ccpa,{iabAgreementExists:a.iabAgreementExists,isActive:a.isActive,region:a.region,reshowAfterDays:a.reshowAfterDays,showOnPageLoad:a.showOnPageLoad}),consentAnalytics:i.consentAnalytics,consentAPIv2:i.consentAPIv2,consentSharingIFrameIsActive:i.consentSharingIFrameIsActive,consentXDevice:i.consentXDevice,customization:(o=i.customization,o?at(at({color:o.color?{primary:o.color.primary,privacyButtonBackground:o.color.privacyButtonBackground,privacyButtonIcon:o.color.privacyButtonIcon}:null},o.privacyButtonSizeMobile&&{privacyButtonSizeMobile:o.privacyButtonSizeMobile}),o.privacyButtonSizeDesktop&&{privacyButtonSizeDesktop:o.privacyButtonSizeDesktop}):o),dataExchangeOnPage:i.dataExchangeOnPage,displayOnlyForEU:i.displayOnlyForEU,enableBotDetection:i.enableBotDetection,enablePoweredBy:i.enablePoweredBy,googleConsentMode:i.googleConsentMode,integrations:i.integrations,interactionAnalytics:i.interactionAnalytics,labels:{partnerPoweredByLinkText:i.labels.partnerPoweredByLinkText,poweredBy:i.labels.poweredBy},languagesAvailable:i.languagesAvailable,partnerPoweredByUrl:i.partnerPoweredByUrl,privacyButtonIsVisible:i.privacyButtonIsVisible,privacyButtonUrls:i.privacyButtonUrls,reshowBanner:i.reshowBanner,settingsId:i.settingsId,showInitialViewForVersionChange:i.showInitialViewForVersionChange,tagLoggerIsActive:i.tagLoggerIsActive,tcf2:(s=i.tcf2,{resurfaceIABLegalBasisChanged:s.resurfaceIABLegalBasisChanged,resurfacePeriodEnded:s.resurfacePeriodEnded,resurfacePurposeChanged:s.resurfacePurposeChanged,resurfaceVendorAdded:s.resurfaceVendorAdded}),tcf2Enabled:i.tcf2Enabled,variants:i.variants,version:i.version},n=function(e){return{categories:e.categories,consentTemplates:e.consentTemplates}}(e),[2,{core:t,dps:n}]}var i,s,o,a}))}))},e.prototype.init=function(){var e,t,n;return ct(this,void 0,void 0,(function(){var r,i,s,o,a,c,u,l,d,p,f,h,g,v,m,y,_,b,S,I,C,E,A=this;return ut(this,(function(T){switch(T.label){case 0:return kt.getInstance().init(),this.apiInstance.getRulesetId()?(r=this,[4,Yr.getInstance().resolveSettingsId()]):[3,2];case 1:r.rulesetRule=T.sent(),this.apiInstance.setSettingsId(this.rulesetRule.settingsId),this.initOptions.controllerIds&&this.controllerIdInstance.setControllerIdByResolvedSettingsId(this.rulesetRule.settingsId,this.initOptions.controllerIds),T.label=2;case 2:return kt.clearOnNewSettingsId(this.apiInstance.getSettingsId()),kt.migrateLegacySettings(this.apiInstance.getSettingsId()),i=kt.fetchServices(),s=null==i?void 0:i.map((function(e){return e.history})).flat().reduce((function(e,t){return(null==e?void 0:e.timestamp)0&&h&&!(null==h?void 0:h.isDeactivated)&&((g=document.createElement("script")).src="https://bt.fraud0.com/api/v2/fz.js?cid=".concat(a.integrations.fraud0[0].accountId),g.async=!0,g.setAttribute(Ur,"Fraud0"),g.type=gr.TEXT_PLAIN,document.body.appendChild(g)),v=this.apiInstance.getJsonFileLanguage(),[4,this.settingsV2.init(a,c,v)];case 12:return T.sent(),[4,this.uiInstance.resolveUiVariant(a.tcf2Enabled)];case 13:return m=T.sent(),[4,this.settingsV2.initData(m,[],!1,!0===this.initOptions.euMode,this.initOptions.excludeAcceptAllVendors,o,this.initOptions.enableDeprecatedV1ConsentSaving)];case 14:return T.sent(),[4,this.apiInstance.fetchTranslations()];case 15:return y=T.sent(),!this.initOptions.prefetchServices&&this.settingsV2.allLegacyServicesHaveName?[3,17]:[4,this.settingsV2.extendServices(m,y)];case 16:T.sent(),this.apiInstance.resetAggregatedServicesCache(),T.label=17;case 17:return this.controllerIdInstance.setNeedSessionRestore(),[4,this.dataFacadeInstance.restoreUserSession(c)];case 18:return(_=T.sent())||(this.controllerIdInstance.init(),this.settingsV2.data&&this.settingsV2.setControllerId(this.controllerIdInstance.value)),[4,this.uiInstance.init(this.initOptions)];case 19:return T.sent(),b=this.settingsV2.getTcfData(),_n(this.settingsV2.data)&&b?[4,this.settingsV2.data.init(!0===this.initOptions.euMode)]:[3,21];case 20:T.sent(),T.label=21;case 21:return this.settingsV2.initLabels(m,y),S=[],kt.settingsExist()&&(S=this.processStorageServicesAndSettings(this.settingsV2.data)),this.botInstance.isRobot()||(this.apiInstance.saveConsentsFromBuffer(),this.apiInstance.saveConsentsV2FromBuffer()),[4,this.uiInstance.resolveUIOptions(a)];case 22:return I=T.sent(),C=I.initialLayer,E=kt.fetchTCFData(),_&&b&&kt.saveTCFData(at(at({},E),{vendors:Bs(b.getTCFData().vendors)})),this.setIsConsentRequired(this.uiInstance.shouldShowFirstLayer(a)),this.isConsentRequired&&kt.setUserActionPerformed(!1),this.settingsV2.initLabels(m,y),[4,this.settingsV2.initUI(C,m)];case 23:return T.sent(),b?!(0===C||(null===(n=this.initOptions)||void 0===n?void 0:n.suppressCmpDisplay)&&this.getIsConsentRequired())||this.botInstance.isRobot()?[3,25]:[4,b.setUIAsOpen()]:[3,27];case 24:return T.sent(),[3,27];case 25:return[4,b.setUIAsClosed()];case 26:T.sent(),T.label=27;case 27:return!this.settingsV2.isTagLoggerActive()||this.botInstance.isRobot()?[3,29]:[4,dynamicImportPolyfill("./Taglogger-42dbc2a7-c9f336e3.js",import.meta.url).then((function(e){(new e.default).initTagLogger()}))];case 28:T.sent(),T.label=29;case 29:return this.eventDispatcherInstance.init(this.settingsV2.getDataExchangeSettings()),[4,this.updateStorage(i,S,_)];case 30:return T.sent(),[2,I]}}))}))},e.prototype.acceptAllForTCF=function(e){return ct(this,void 0,void 0,(function(){var t;return ut(this,(function(n){switch(n.label){case 0:return(t=this.settingsV2.getTcfData())?[4,t.acceptAllDisclosed(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},e.prototype.acceptAllServices=function(e){return void 0===e&&(e="explicit"),ct(this,void 0,void 0,(function(){return ut(this,(function(t){switch(t.label){case 0:return this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(ze.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(ze.TRUE),"onAcceptAllServices",e,{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()];case 1:return t.sent(),[2]}}))}))},e.prototype.changeLanguage=function(e){var t;return ct(this,void 0,void 0,(function(){var n,r,i,s,o,a,c,u,l,d,p,f,h,g,v,m;return ut(this,(function(y){switch(y.label){case 0:return n=null===(t=this.settingsV2.core)||void 0===t?void 0:t.language.available,r=n&&n.some((function(t){return t===e})),i=e!==this.apiInstance.getJsonFileLanguage()&&r,s=this.settingsV2,o=s.core,a=s.data,i&&a&&o?(this.apiInstance.setJsonFileLanguage(e),this.apiInstance.resetTranslationsCache(),this.settingsV2.language=e,[4,this.fetchCoreAndDps()]):[3,8];case 1:return c=y.sent().dps,this.settingsV2.dpsJson=c,u=this.uiInstance,l=u.selectedLayer,d=u.variant,[4,this.apiInstance.fetchTranslations()];case 2:return p=y.sent(),null===d||null===l||null==c?[3,6]:!this.settingsV2.isAggregatorLoaded&&this.settingsV2.checkIfServiceNameExists(c.consentTemplates)?[3,4]:[4,this.settingsV2.extendServices(d,p)];case 3:return y.sent(),[3,5];case 4:this.settingsV2.initLabels(d,p),y.label=5;case 5:this.apiInstance.resetAggregatedServicesCache(),y.label=6;case 6:return this.settingsV2.updateServicesLanguage(e),f=this.dataFacadeInstance.getMergedServicesAndSettingsFromStorage(a),h=f.mergedServices,g=f.mergedServicesData,v=f.mergedSettingsData,o.language.selected=e,v.categories=this.settingsV2.mergeServicesDataIntoExistingCategories(g),this.settingsV2.data=v,(m=this.settingsV2.getDataTransferSettings())&&kt.saveSettings(kt.mapSettings(m,h),h),_n(v)?[4,v.changeLanguage(e)]:[3,8];case 7:y.sent(),y.label=8;case 8:return[2]}}))}))},e.prototype.denyAllForTCF=function(e){return ct(this,void 0,void 0,(function(){var t;return ut(this,(function(n){switch(n.label){case 0:return(t=this.settingsV2.getTcfData())?[4,t.denyAllDisclosed(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},e.prototype.denyAllServices=function(e){return void 0===e&&(e="explicit"),ct(this,void 0,void 0,(function(){return ut(this,(function(t){switch(t.label){case 0:return this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(ze.FALSE),this.settingsV2.getUpdatedServicesDataWithConsent(ze.FALSE),"onDenyAllServices",e,{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()];case 1:return t.sent(),[2]}}))}))},e.prototype.fetchIsUserInEU=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(e){return[2,this.locationInstance.getIsUserInEU()]}))}))},e.prototype.fetchUserCountry=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(e){return[2,this.locationInstance.getUserCountryData()]}))}))},e.prototype.getAbTestVariant=function(){return this.apiInstance.getAbTestVariant()},e.prototype.getCategoriesBaseInfo=function(){return this.settingsV2.getCategoriesBaseInfo()},e.prototype.getCategoriesFullInfo=function(){return ct(this,void 0,void 0,(function(){var e;return ut(this,(function(t){switch(t.label){case 0:return[4,this.apiInstance.fetchTranslations()];case 1:return e=t.sent(),[2,this.settingsV2.getCategoriesFullInfo(this.uiInstance.variant,e)]}}))}))},e.prototype.getCcpaOptOutStatus=function(){var e;return(null===(e=this.settingsV2.getCcpaData())||void 0===e?void 0:e.getIsOptedOut())||!1},e.prototype.getCcpaExplicitNoticeStatus=function(){var e;return(null===(e=this.settingsV2.getCcpaData())||void 0===e?void 0:e.getExplicitNotice())||!1},e.prototype.saveOptOutForCcpa=function(e,t){return void 0===t&&(t="explicit"),ct(this,void 0,void 0,(function(){var n,r;return ut(this,(function(i){switch(i.label){case 0:return(n=this.settingsV2.getCcpaData())&&n.getIsOptedOut()!==e?(n.setCcpaStorage(e),r={consentAction:e?"onDenyAllServices":"onAcceptAllServices",consentStatus:e?ze.FALSE:ze.TRUE,consentString:{CCPA:kt.getCcpaString()}},this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(r.consentStatus),this.settingsV2.getUpdatedServicesDataWithConsent(r.consentStatus),r.consentAction,t,r.consentString,this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()]):[2];case 1:return i.sent(),[2]}}))}))},e.prototype.saveDefaultForCcpa=function(){return ct(this,void 0,void 0,(function(){var e,t,n;return ut(this,(function(r){switch(r.label){case 0:return e=this.settingsV2.getCcpaData(),t=kt.getCcpaString(),e?[3,2]:(kt.setCcpaTimeStamp(),[4,this.saveUserActionPerformed()]);case 1:case 3:return r.sent(),[2];case 2:return"-"===t[1]?(n=e.getIsOptedOut(),null==e||e.setCcpaStorage(n,Pr.ACCEPT),window.dispatchEvent(new Event(mr))):kt.setCcpaTimeStamp(),[4,this.saveUserActionPerformed()]}}))}))},e.prototype.getControllerId=function(){return this.controllerIdInstance.value},e.prototype.getServicesBaseInfo=function(){return this.settingsV2.getServicesBaseInfo()},e.prototype.getServicesFullInfo=function(){return ct(this,void 0,void 0,(function(){var e;return ut(this,(function(t){switch(t.label){case 0:return[4,this.apiInstance.fetchTranslations()];case 1:return e=t.sent(),[2,this.settingsV2.getServicesFullInfo(this.uiInstance.variant,e)]}}))}))},e.prototype.getSettingsCore=function(){var e=this.settingsV2.core;if(!e)throw new Error("Usercentrics: You have to call the init method before!");return e},e.prototype.getSettingsLabels=function(){var e=this.settingsV2.labels;if(!e)throw new Error("Usercentrics: You have to call the init method before!");return e},e.prototype.getSettingsData=function(){var e=this.settingsV2.data;if(!e)throw new Error("Usercentrics: You have to call the init method before!");return e},e.prototype.getSettingsUI=function(){return this.settingsV2.ui},e.prototype.getAriaLabels=function(){var e,t;return En(this.settingsV2.labels)&&null!=(null===(e=this.settingsV2.labels)||void 0===e?void 0:e.ariaLabels)?null===(t=this.settingsV2.labels)||void 0===t?void 0:t.ariaLabels:Ln},e.prototype.getTCFData=function(){var e=this.settingsV2.getTcfData();return e?e.getTCFData():null},e.prototype.getTCFDisclosedVendorsSegmentString=function(){return this.settingsV2.getTCFDisclosedVendorsSegmentString()},e.prototype.injectTCString=function(e){return this.settingsV2.injectTCString(e)},e.prototype.setTCFUIAsClosed=function(){return ct(this,void 0,void 0,(function(){var e;return ut(this,(function(t){switch(t.label){case 0:return(e=this.settingsV2.getTcfData())?[4,e.setUIAsClosed()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},e.prototype.setTCFUIAsOpen=function(){return ct(this,void 0,void 0,(function(){var e;return ut(this,(function(t){switch(t.label){case 0:return(e=this.settingsV2.getTcfData())?[4,e.setUIAsOpen()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},e.prototype.updateChoicesForTCF=function(e,t){return ct(this,void 0,void 0,(function(){var n;return ut(this,(function(r){switch(r.label){case 0:return(n=this.settingsV2.getTcfData())?[4,n.updateChoices(e,t)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},e.prototype.areAllConsentsAccepted=function(){return this.settingsV2.isTcfAvailable()?this.settingsV2.areAllVendorsAndPurposesAccepted()&&this.settingsV2.areAllServicesAccepted():this.settingsV2.areAllServicesAccepted()},e.prototype.restoreUserSession=function(e){var t,n;return ct(this,void 0,void 0,(function(){var r;return ut(this,(function(i){switch(i.label){case 0:return(null===(t=this.settingsV2.core)||void 0===t?void 0:t.consentAPIv2)&&!(null===(n=this.settingsV2.core)||void 0===n?void 0:n.consentXDevice)?(console.warn(it.CROSS_DEVICE_FEATURE_DISABLED),this.controllerIdInstance.needsSessionRestore=!1,[2]):(this.controllerIdInstance.value=e,this.controllerIdInstance.needsSessionRestore=!0,this.settingsV2.setControllerId(e),(r=this.settingsV2.dpsJson)?[4,this.dataFacadeInstance.restoreUserSession(r)]:[3,2]);case 1:i.sent()&&this.enableServicesScripts(this.processStorageServicesAndSettings(this.settingsV2.data),this.settingsV2.getGoogleConsentMode(),"onSessionRestored"),i.label=2;case 2:return[2]}}))}))},e.prototype.clearStorage=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(e){switch(e.label){case 0:return[4,kt.clearAll()];case 1:return e.sent(),[2]}}))}))},e.prototype.postMessageAmp=function(e,t,n){return ct(this,void 0,void 0,(function(){var r,i,s,o,a,c,u,l,d=this;return ut(this,(function(p){switch(p.label){case 0:return r=this.settingsV2.isTcfAvailable(),[4,this.settingsV2.isCcpaAvailable()];case 1:return i=p.sent(),s=function(){var e=d.settingsV2.getTcfData();return r&&(null==e?void 0:e.getTCString)?e.getTCString():i?kt.getCcpaString():""},o=function(){return ct(d,void 0,void 0,(function(){var e,t,n,s;return ut(this,(function(o){switch(o.label){case 0:return s=this.settingsV2.getTcfData(),r&&s?(e=We.TCF_V2,[4,s.getGdprApplies()]):[3,2];case 1:return t=o.sent(),n=this.settingsV2.getTCFPurposeOneTreatment(),[3,3];case 2:i&&(e=We.CCPA),o.label=3;case 3:return[2,at({consentStringType:e},r&&{gdprApplies:t,purposeOne:n})]}}))}))},c=[{action:t,type:e}],(u=e===je.CONSENT_RESPONSE&&t!==Ye.DISMISS&&(i||r))?(l={},[4,o()]):[3,3];case 2:l.consentMetadata=p.sent(),l.info=s(),u=l,p.label=3;case 3:return a=at.apply(void 0,[at.apply(void 0,c.concat([u])),n&&{initialHeight:n}]),[2,new Promise((function(e,t){try{window.parent.postMessage(at({},a),"*"),e()}catch(e){t(e)}}))]}}))}))},e.prototype.acceptAllAmp=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(e){switch(e.label){case 0:return[4,this.postMessageAmp(je.CONSENT_RESPONSE,Ye.ACCEPT)];case 1:return e.sent(),[2]}}))}))},e.prototype.denyAllAmp=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(e){switch(e.label){case 0:return[4,this.postMessageAmp(je.CONSENT_RESPONSE,Ye.REJECT)];case 1:return e.sent(),[2]}}))}))},e.prototype.saveTCFDataAmp=function(e){return ct(this,void 0,void 0,(function(){var t;return ut(this,(function(n){switch(n.label){case 0:return t=e.every((function(e){return e.status})),0===e.length||t?[4,this.postMessageAmp(je.CONSENT_RESPONSE,Ye.ACCEPT)]:[3,2];case 1:return n.sent(),[3,4];case 2:return[4,this.postMessageAmp(je.CONSENT_RESPONSE,Ye.REJECT)];case 3:n.sent(),n.label=4;case 4:return[2]}}))}))},e.prototype.dismissAmp=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(e){switch(e.label){case 0:return[4,this.postMessageAmp(je.CONSENT_RESPONSE,Ye.DISMISS)];case 1:return e.sent(),[2]}}))}))},e.prototype.enterFullscreenAmp=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(e){return[2,this.postMessageAmp(je.CONSENT_UI,Ye.FULLSCREEN)]}))}))},e.prototype.uiReadyAmp=function(){return ct(this,void 0,void 0,(function(){var e,t,n;return ut(this,(function(r){return e=this.settingsV2.labels,t="60vh",e&&En(e)&&(n=e.firstLayer.description.default.length,window.screen.height>700&&n<=250&&(t="50vh")),[2,this.postMessageAmp(je.CONSENT_UI,Ye.READY,t)]}))}))},e.prototype.saveUserActionPerformed=function(){return ct(this,void 0,void 0,(function(){return ut(this,(function(e){switch(e.label){case 0:return kt.setUserActionPerformed(!0),this.setIsConsentRequired(!1),this.uiInstance.selectedLayer?[4,this.settingsV2.initUI(this.uiInstance.selectedLayer,this.uiInstance.variant)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.updateServices=function(e,t){return void 0===t&&(t="explicit"),ct(this,void 0,void 0,(function(){var n,r;return ut(this,(function(i){switch(i.label){case 0:return n=this.settingsV2.getUpdatedServicesWithDecisions(e),r=this.settingsV2.getUpdatedServicesDataWithDecisions(e),Bt(n)&&this.dataFacadeInstance.execute(n,r,"onUpdateServices",t,{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()];case 1:return i.sent(),[2]}}))}))},e.prototype.updateLayer=function(e){return ct(this,void 0,void 0,(function(){var t;return ut(this,(function(n){switch(n.label){case 0:return t=this.uiInstance.selectedLayer,this.uiInstance.selectedLayer=e,e===t?[2]:[4,this.settingsV2.initUI(e,this.uiInstance.variant)];case 1:return n.sent(),3!==e?[3,3]:[4,this.loadServices()];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))},e.prototype.loadServices=function(){return ct(this,void 0,void 0,(function(){var e;return ut(this,(function(t){switch(t.label){case 0:return this.settingsV2.isAggregatorLoaded||!this.uiInstance.selectedLayer?[2]:[4,this.apiInstance.fetchTranslations()];case 1:return e=t.sent(),[4,this.settingsV2.extendServices(this.uiInstance.variant,e)];case 2:return t.sent(),this.apiInstance.resetAggregatedServicesCache(),[2]}}))}))},e.prototype.loadSettings=function(){return ct(this,void 0,void 0,(function(){var e;return ut(this,(function(t){switch(t.label){case 0:return[4,this.apiInstance.fetchSettingsJson()];case 1:return e=t.sent(),this.settingsV2.legacySettings=e,[2,e]}}))}))},e.prototype.updateStorage=function(e,t,n){return ct(this,void 0,void 0,(function(){var r,i,s;return ut(this,(function(o){switch(o.label){case 0:return[4,this.settingsV2.shouldDenyAllExplicitlyOnInit()];case 1:return o.sent()?(this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(ze.FALSE),this.settingsV2.getUpdatedServicesDataWithConsent(ze.FALSE),"onDenyAllServices","explicit",{},this.initOptions.enableDeprecatedV1ConsentSaving),[3,7]):[3,2];case 2:return this.uiInstance.isFirstTimeVisit()?[4,this.settingsV2.shouldAcceptAllImplicitlyOnInit()]:[3,4];case 3:return o.sent()?this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(ze.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(ze.TRUE),"onNonEURegion",this.botInstance.isRobot()?"explicit":"implicit",{},this.initOptions.enableDeprecatedV1ConsentSaving):this.dataFacadeInstance.execute(this.settingsV2.getServicesDataAndLabels(),this.settingsV2.getServicesData(),"onInitialPageLoad","implicit",{},this.initOptions.enableDeprecatedV1ConsentSaving),[3,7];case 4:return r=null!=t?t:this.processStorageServicesAndSettings(this.settingsV2.data),a=this.settingsV2.getServicesData(),(i=(c=e)&&!a.every((function(e){return c.find((function(t){return t.id===e.id}))}))||!1)?[4,this.settingsV2.shouldAcceptAllImplicitlyOnVendorAdded()]:[3,6];case 5:i=o.sent(),o.label=6;case 6:i?this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(ze.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(ze.TRUE),"onNonEURegion",this.botInstance.isRobot()?"explicit":"implicit",{},this.initOptions.enableDeprecatedV1ConsentSaving):(s=n&&this.dataFacadeInstance.restoreAction?this.dataFacadeInstance.restoreAction:"onInitialPageLoad",this.enableServicesScripts(r,this.settingsV2.getGoogleConsentMode(),s),this.dataFacadeInstance.restoreAction=null),o.label=7;case 7:return[2]}var a,c}))}))},e.prototype.enableScriptsForServicesWithConsent=function(){kr.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent())},e.prototype.setTrackingPixel=function(e){var t;!this.initOptions.disableTracking&&(null===(t=this.settingsV2.coreJson)||void 0===t?void 0:t.interactionAnalytics)&&this.apiInstance.setTrackingPixel(e)},e.prototype.addSessionTrackingPixel=function(){(new Image).src=this.apiInstance.createSessionTrackingUrl()},e.prototype.processStorageServicesAndSettings=function(e){if(!e||!this.settingsV2.labels)return[];var t=this.dataFacadeInstance.getMergedServicesAndSettingsFromStorage(e),n=t.dataTransferSettings,r=t.mergedServicesData,i=t.mergedServices,s=t.updatedEssentialServices;return this.dataFacadeInstance.mergeServicesAndSettings(i,r,n,s,this.settingsV2.labels.services,this.initOptions.enableDeprecatedV1ConsentSaving)},e.prototype.enableServicesScripts=function(e,t,n){kr.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent()),this.eventDispatcherInstance.dispatch(e,t,n)},e.prototype.setIsConsentRequired=function(e){this.isConsentRequired=!0===e},e.prototype.getIsConsentRequired=function(){return this.isConsentRequired},e.prototype.getThirdPartyCount=function(){return this.settingsV2.getThirdPartyCount()},e}();const zs=()=>{try{const{clientConfig:e}=JSON.parse(window.name);return e}catch(e){console.error(Q.CLIENT_CONFIG_NOT_AVAILABLE)}return null},Js=e=>{const t=e.replace(/\s+/g,""),n=e.match(/[^\r\n]+/g);if(!((null==n?void 0:n.reduce(((e,t)=>e+t.replace(/\s+/g,"").length),0))===t.length))return e;const r=[{bulletPoints:[],title:""}];let i=0;if(n){n.forEach(((e,t)=>{e.startsWith("*")?r[i].bulletPoints.push(" "===e.substr(1,1)?e.substr(2):e.substr(1)):(t>0&&(i+=1),r[i]={bulletPoints:[],title:e})}));if(r.reduce(((e,t)=>e+t.title.replace(/\s|\u002a+/g,"").length+t.bulletPoints.reduce(((e,t)=>e+t.replace(/\s|\u002a+/g,"").length),0)),0)===t.replace(/\u002a+/g,"").length)return r}return e},Ks=e=>/\S+@\S+\.\S+/.test(e),qs=(e,t)=>{switch(e){case Xe.BANNER:return{layerPlacement:se.BOTTOM,testId:t.firstLayerBanner};case Xe.WALL:return{layerPlacement:se.CENTER,testId:t.firstLayerWall};case Qe.CENTER:return{layerPlacement:se.CENTER,testId:t.secondLayer};case Qe.SIDE:return{layerPlacement:se.SIDE,testId:t.secondLayer};default:return{layerPlacement:null,testId:""}}},Xs=e=>null!=e&&"object"==typeof e,Qs=(e,t)=>{const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const r of n){const n=e[r],i=t[r],s=Xs(n)&&Xs(i);if(s&&!Qs(n,i)||!s&&n!==i)return!1}return!0},Zs=(e,t,n,r)=>{const i={source:e===q.NONE||e===q.PRIVACY_BUTTON&&t!==K.CMP_SHOWN?J.API:e,type:t};n&&n.length&&(i.abTestVariant=n);const s=new window.CustomEvent(X.ANALYTICS,{detail:i});window.dispatchEvent(s);let o=(e=>{switch(e){case K.CMP_SHOWN:return hs.CMP_SHOWN;case K.ACCEPT_ALL:return hs.ACCEPT_ALL;case K.DENY_ALL:return hs.DENY_ALL;case K.SAVE:return hs.SAVE;case K.COOKIE_POLICY_LINK:return hs.COOKIE_POLICY_LINK;case K.IMPRINT_LINK:return hs.IMPRINT_LINK;case K.MORE_INFORMATION_LINK:return hs.MORE_INFORMATION_LINK;case K.PRIVACY_POLICY_LINK:return hs.PRIVACY_POLICY_LINK;case K.INTEGRATIONS_LINK:return hs.SAY_MINE_LINK;case K.CCPA_TOGGLES_ON:return hs.CCPA_TOGGLES_ON;case K.CCPA_TOGGLES_OFF:return hs.CCPA_TOGGLES_OFF;default:return hs.UNDEFINED}})(t),a=0;o>1&&o<5&&(e===q.FIRST_LAYER?a=3:e===q.SECOND_LAYER&&(a=6)),o+=a;r({abTestVariant:n,eventType:o})},eo=e=>{for(;e.lastElementChild;)e.removeChild(e.lastElementChild)},to="BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif",no="hsl(0.0, 0%, 19%)",ro="#ffffff",io="#0045A5",so=400,oo=700,ao=ro,co=.7,uo="1px solid #dedede",lo=ro,po={lg:992,md:768,sm:600,xl:1200,xs:400,xxl:1472,xxxl:1e4};function fo(){return fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&i<1?(a=s,c=o):i>=1&&i<2?(a=o,c=s):i>=2&&i<3?(c=s,u=o):i>=3&&i<4?(c=o,u=s):i>=4&&i<5?(a=o,u=s):i>=5&&i<6&&(a=s,u=o);var l=n-s/2;return r(a+l,c+l,u+l)}var Io={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var Co=/^#[a-fA-F0-9]{6}$/,Eo=/^#[a-fA-F0-9]{8}$/,Ao=/^#[a-fA-F0-9]{3}$/,To=/^#[a-fA-F0-9]{4}$/,wo=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Oo=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Lo=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Ro=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function No(e){if("string"!=typeof e)throw new yo(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return Io[t]?"#"+Io[t]:e}(e);if(t.match(Co))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Eo)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(Ao))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(To)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var i=wo.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var s=Oo.exec(t.substring(0,50));if(s)return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10),alpha:parseFloat(""+s[4])>1?parseFloat(""+s[4])/100:parseFloat(""+s[4])};var o=Lo.exec(t);if(o){var a="rgb("+So(parseInt(""+o[1],10),parseInt(""+o[2],10)/100,parseInt(""+o[3],10)/100)+")",c=wo.exec(a);if(!c)throw new yo(4,t,a);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10)}}var u=Ro.exec(t.substring(0,50));if(u){var l="rgb("+So(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",d=wo.exec(l);if(!d)throw new yo(4,t,l);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+u[4])>1?parseFloat(""+u[4])/100:parseFloat(""+u[4])}}throw new yo(5)}function Do(e){return function(e){var t,n=e.red/255,r=e.green/255,i=e.blue/255,s=Math.max(n,r,i),o=Math.min(n,r,i),a=(s+o)/2;if(s===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:a,alpha:e.alpha}:{hue:0,saturation:0,lightness:a};var c=s-o,u=a>.5?c/(2-s-o):c/(s+o);switch(s){case n:t=(r-i)/c+(r=1?Fo(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Fo(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new yo(7)}var Mo=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},Go=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},Ho=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},$o=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function jo(e){if("object"!=typeof e)throw new yo(8);if(Go(e))return Bo(e);if(Mo(e))return Fo(e);if($o(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?xo(e,t,n):"rgba("+So(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?xo(e.hue,e.saturation,e.lightness):"rgba("+So(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new yo(2)}(e);if(Ho(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return xo(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return xo(e.hue,e.saturation,e.lightness);throw new yo(1)}(e);throw new yo(8)}function Yo(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Yo(e,t,r)}}function Wo(e){return Yo(e,e.length,[])}function zo(e,t,n){return Math.max(e,Math.min(t,n))}function Jo(e,t){if("transparent"===t)return t;var n=Do(t);return jo(fo({},n,{lightness:zo(0,1,n.lightness-parseFloat(e))}))}var Ko=Wo(Jo);function qo(e){if("transparent"===e)return 0;var t=No(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),r=n[0],i=n[1],s=n[2];return parseFloat((.2126*r+.7152*i+.0722*s).toFixed(3))}function Xo(e,t){if("transparent"===t)return t;var n=Do(t);return jo(fo({},n,{lightness:zo(0,1,n.lightness+parseFloat(e))}))}var Qo=Wo(Xo);function Zo(e,t){var n=function(e,t){var n=qo(e),r=qo(t);return parseFloat((n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)).toFixed(2))}(e,t);return{AA:n>=4.5,AALarge:n>=3,AAA:n>=7,AAALarge:n>=4.5}}function ea(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var r=No(t),i=fo({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),s=No(n),o=fo({},s,{alpha:"number"==typeof s.alpha?s.alpha:1}),a=i.alpha-o.alpha,c=2*parseFloat(e)-1,u=((c*a==-1?c:c+a)/(1+c*a)+1)/2,l=1-u;return Bo({red:Math.floor(i.red*u+o.red*l),green:Math.floor(i.green*u+o.green*l),blue:Math.floor(i.blue*u+o.blue*l),alpha:i.alpha*parseFloat(e)+o.alpha*(1-parseFloat(e))})}var ta=Wo(ea);function na(e,t){return"transparent"===t?t:ta(parseFloat(e),"rgb(255, 255, 255)",t)}var ra=Wo(na);const ia={base:{xxs:"4px",xs:"8px",sm:"12px",md:"16px",lg:"20px",xl:"24px",xxl:"28px",xxxl:"32px",xxxxl:"36px"},mobile:{xxs:"2px",xs:"4px",sm:"6px",md:"8px",lg:"10px",xl:"12px",xxl:"14px",xxxl:"16px",xxxxl:"18px"}},sa=(e,t=ie.MIN_WIDTH)=>`(${t} ${e}px)`,{sm:oa,md:aa}=po,ca={ie11:" @media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)",mobileLandscape:`@media ${sa(aa,ie.MAX_HEIGHT)} and (orientation: landscape)`,mobileLandscapeXS:`@media ${sa(oa,ie.MAX_HEIGHT)} and (orientation: landscape)`,mobilePortrait:`@media ${sa(aa,ie.MAX_WIDTH)} and (orientation: portrait)`,mobilePortraitXS:`@media ${sa(oa,ie.MAX_WIDTH)}`};function ua(e,t){return Zo(e,t.primary).AA?t.primary:t.quaternary}const la=e=>({dark:Ko(.1,e),default:e});function da(e){const t=ra(.2,e),n=ra(.84,e),r=ra(.98,e);return{[te.PRIMARY]:la(e),[te.SECONDARY]:la(t),[te.TERTIARY]:la(n),[te.QUATERNARY]:la(r),[te.NEUTRAL]:la("hsl(0.0, 0%, 96.0%)")}}function pa(e){return e&&e!==to?`${e},${to}`:to}function fa(e=to,t=14,n=no,r=!1){return{color:{[ne.PRIMARY]:n,[ne.SECONDARY]:ra(.2,n),[ne.TERTIARY]:ra(.84,n),[ne.QUATERNARY]:ra(.98,n)},font:pa(e),rtlEnabled:r,scaleFactor:t/14,size:{[re.LARGE]:"1.125em",[re.MEDIUM]:"1em",[re.SMALL]:"0.875em",[re.XSMALL]:"0.75em",root:`${t}px`},weight:{bold:700,light:250,regular:400,semiBold:550}}}const ha=(e,t,n,r,i)=>{const s=(e=>"auto"===e?e:"number"==typeof e&&0!==e||"string"==typeof e&&!e.includes("px")?`${e}px`:"string"==typeof e?e:"0")(n),o=i||"";let a="";r&&(a=r!==ee.NONE?`${s} ${r} ${o}`:`${ee.NONE}`);const c=e.typography.rtlEnabled;switch(t){case Z.FLEX_ALIGNMENT_LEFT:return c?`${Z.FLEX_ALIGNMENT_RIGHT}`:`${Z.FLEX_ALIGNMENT_LEFT}`;case Z.FLEX_ALIGNMENT_RIGHT:return c?`${Z.FLEX_ALIGNMENT_LEFT}`:`${Z.FLEX_ALIGNMENT_RIGHT}`;case Z.TEXT_ALIGNMENT_LEFT:return c?`${Z.TEXT_ALIGNMENT_RIGHT}`:`${Z.TEXT_ALIGNMENT_LEFT}`;case Z.TEXT_ALIGNMENT_RIGHT:return c?`${Z.TEXT_ALIGNMENT_LEFT}`:`${Z.TEXT_ALIGNMENT_RIGHT}`;case Z.FLOAT_LEFT:return c?`${Z.FLOAT_RIGHT}`:`${Z.FLOAT_LEFT}`;case Z.FLOAT_RIGHT:return c?`${Z.FLOAT_LEFT}`:`${Z.FLOAT_RIGHT}`;case Z.PADDING_LEFT:return c?`${Z.PADDING_RIGHT} ${s}`:`${Z.PADDING_LEFT} ${s}`;case Z.PADDING_RIGHT:return c?`${Z.PADDING_LEFT} ${s}`:`${Z.PADDING_RIGHT} ${s}`;case Z.MARGIN_LEFT:return c?`${Z.MARGIN_RIGHT} ${s}`:`${Z.MARGIN_LEFT} ${s}`;case Z.MARGIN_RIGHT:return c?`${Z.MARGIN_LEFT} ${s}`:`${Z.MARGIN_RIGHT} ${s}`;case Z.BORDER_LEFT:return c?`${Z.BORDER_RIGHT} ${a};`:`${Z.BORDER_LEFT} ${a}`;case Z.BORDER_RIGHT:return c?`${Z.BORDER_LEFT} ${a};`:`${Z.BORDER_RIGHT} ${a}`;case Z.BORDER_RADIUS_BOTTOM_LEFT:return c?`${Z.BORDER_RADIUS_BOTTOM_RIGHT} ${s}`:`${Z.BORDER_RADIUS_BOTTOM_LEFT} ${s}`;case Z.BORDER_RADIUS_BOTTOM_RIGHT:return c?`${Z.BORDER_RADIUS_BOTTOM_LEFT} ${s}`:`${Z.BORDER_RADIUS_BOTTOM_RIGHT} ${s}`;case Z.BORDER_RADIUS_TOP_LEFT:return c?`${Z.BORDER_RADIUS_TOP_RIGHT} ${s}`:`${Z.BORDER_RADIUS_TOP_LEFT} ${s}`;case Z.BORDER_RADIUS_TOP_RIGHT:return c?`${Z.BORDER_RADIUS_TOP_LEFT} ${s}`:`${Z.BORDER_RADIUS_TOP_RIGHT} ${s}`;case Z.OBJECT_POSITION_LEFT:return c?`${Z.OBJECT_POSITION_RIGHT} ${s}`:`${Z.OBJECT_POSITION_LEFT} ${s}`;case Z.OBJECT_POSITION_RIGHT:return c?`${Z.OBJECT_POSITION_LEFT} ${s}`:`${Z.OBJECT_POSITION_RIGHT} ${s}`;case Z.POSITION_RIGHT:return c?`${Z.POSITION_LEFT} ${s}`:`${Z.POSITION_RIGHT} ${s}`;case Z.POSITION_LEFT:return c?`${Z.POSITION_RIGHT} ${s}`:`${Z.POSITION_LEFT} ${s}`;default:return""}},ga=(e,t,n)=>la(n||ua(e,t)),va=e=>`${e}px`,ma=(e,t)=>t&&!On(t)?{color:da(t.primaryColor),typography:fa(t.font.family,t.font.size,no,e)}:{color:da("hsl(214.9, 100%, 32.4%)"),typography:fa(to,14,no)},ya=(e,t)=>{const{color:n,typography:r}=ma(e,t),i=(({neutral:e,primary:t},{color:n},r)=>{var i,s,o,a,c,u,l,d;return{accept:{bg:la(r&&!On(r)&&!An(r)&&r.buttons.accept.backgroundColor?null==r?void 0:r.buttons.accept.backgroundColor:t.default),text:ga(t.default,n,!r||On(r)||An(r)?null:r.buttons.accept.textColor)},alignment:!r||On(r)||An(r)?nt.HORIZONTAL:r.buttons.alignment,borderRadius:r&&!On(r)?r.buttons.borderRadius:"4px",ccpa:{bg:la(r&&!On(r)&&An(r)&&null!==(i=r.buttons.ok)&&void 0!==i&&i.backgroundColor?r.buttons.ok.backgroundColor:e.default),text:ga(e.default,n,r&&!On(r)&&An(r)&&null!==(s=r.buttons.ok)&&void 0!==s&&s.textColor?r.buttons.ok.textColor:null)},deny:{bg:la(r&&!On(r)&&!An(r)&&null!==(o=r.buttons.deny)&&void 0!==o&&o.backgroundColor?r.buttons.deny.backgroundColor:e.default),text:ga(e.default,n,r&&!On(r)&&!An(r)&&null!==(a=r.buttons.deny)&&void 0!==a&&a.textColor?null==r?void 0:r.buttons.deny.textColor:null)},more:{bg:la(wn(r)&&null!==(c=r.buttons.more)&&void 0!==c&&c.backgroundColor?null==r?void 0:r.buttons.more.backgroundColor:io),text:ga(e.default,n,wn(r)&&null!==(u=r.buttons.more)&&void 0!==u&&u.textColor?r.buttons.more.textColor:null)},privacy:{bg:(()=>{if(r){if(On(r)&&r.backgroundColor)return la(r.backgroundColor);if(!On(r)&&r.layer.backgroundColor)return r.layer.backgroundColor.toLowerCase()!==ro?la(r.layer.backgroundColor):r.primaryColor&&r.primaryColor.toLowerCase()!==ro?la(r.primaryColor):t.default&&t.default.toLowerCase()!==ro?la(t.default):la(io);if(!On(r)&&r.primaryColor&&r.primaryColor.toLowerCase()!==ro)return la(r.primaryColor)}return t.default&&t.default.toLowerCase()!==ro?la(t.default):la(io)})(),desktopSize:va(On(r)&&r.desktopSize?r.desktopSize:64),icon:On(r)&&r.iconColor?r.iconColor:ro,mobileSize:va(On(r)&&r.mobileSize?r.mobileSize:44),text:la(ro)},save:{bg:la(r&&!On(r)&&!An(r)&&null!==(l=r.buttons.save)&&void 0!==l&&l.backgroundColor?r.buttons.save.backgroundColor:e.default),text:ga(e.default,n,r&&!On(r)&&!An(r)&&null!==(d=r.buttons.save)&&void 0!==d&&d.textColor?r.buttons.save.textColor:null)}}})(n,r,t);return{accentColor:!On(t)&&(null==t?void 0:t.accentColor)||"#DDDDDD",buttons:i,expandableLink:{color:!On(t)&&(null==t?void 0:t.links.fontColor)||no},firstLayer:{secondLayerTrigger:!On(t)&&(null==t?void 0:t.firstLayer.secondLayerTrigger)||et.LINK},layer:{backgroundColor:!On(t)&&(null==t?void 0:t.layer.backgroundColor)||ao,borderRadius:!On(t)&&(null==t?void 0:t.layer.borderRadius)||"8px",darkerBackgroundColor:Ko(.1,!On(t)&&(null==t?void 0:t.layer.backgroundColor)||ao)},links:{fontColor:!On(t)&&(null==t?void 0:t.links.fontColor)||no,iconColor:!On(t)&&(null==t?void 0:t.links.iconColor)||no},overlay:{color:!On(t)&&(null==t?void 0:t.overlay.backgroundColor)||"#333",opacity:!On(t)&&(null==t?void 0:t.overlay.opacity)||.7},scroll:{background:"rgba(0,0,0,0)",color:!On(t)&&null!=t&&t.textColor?ra(.6,t.textColor):n.secondary.default},secondLayer:{backgroundColor:Qo(.05,!On(t)&&(null==t?void 0:t.layer.backgroundColor)||ao),content:{backgroundColor:ra(.98,!On(t)&&(null==t?void 0:t.layer.backgroundColor)||ao)},dividers:ra(.84,!On(t)&&(null==t?void 0:t.textColor)||n.primary.default)},tabs:{color:!On(t)&&(null==t?void 0:t.secondLayer.tabColor)||n.primary.default},text:{color:!On(t)&&(null==t?void 0:t.textColor)||n.primary.default},toggle:{active:{backgroundColor:!On(t)&&(null==t?void 0:t.toggle.active.backgroundColor)||"#336AB7",iconColor:!On(t)&&(null==t?void 0:t.toggle.active.iconColor)||lo},disabled:{backgroundColor:!On(t)&&(null==t?void 0:t.toggle.disabled.backgroundColor)||"#dedede",iconColor:!On(t)&&(null==t?void 0:t.toggle.disabled.iconColor)||lo},inactive:{backgroundColor:!On(t)&&(null==t?void 0:t.toggle.inactive.backgroundColor)||"#595959",iconColor:!On(t)&&(null==t?void 0:t.toggle.inactive.iconColor)||lo}},useBackgroundShadow:!(!On(t)&&null!=(null==t?void 0:t.useBackgroundShadow))||(null==t?void 0:t.useBackgroundShadow)}};function _a(e,t,n,r){const{color:i,typography:s}=ma(t,e),o=r||{maxBannerWidth:5e3,maxSideAndCenterContainerWidth:625};return{color:i,spacing:ia,typography:s,ui:ya(t,e),uiSizes:o,uiVariant:n}}const{color:ba,typography:Sa}=ma(!1),Ia={color:ba,spacing:ia,typography:Sa,ui:ya(!1),uiSizes:{maxBannerWidth:5e3,maxSideAndCenterContainerWidth:625},uiVariant:ms.DEFAULT};var Ca={exports:{}},Ea={},Aa=60103,Ta=60106,wa=60107,Oa=60108,La=60114,Ra=60109,Na=60110,Da=60112,Pa=60113,Ua=60120,ka=60115,Va=60116,xa=60121,Fa=60122,Ba=60117,Ma=60129,Ga=60131;if("function"==typeof Symbol&&Symbol.for){var Ha=Symbol.for;Aa=Ha("react.element"),Ta=Ha("react.portal"),wa=Ha("react.fragment"),Oa=Ha("react.strict_mode"),La=Ha("react.profiler"),Ra=Ha("react.provider"),Na=Ha("react.context"),Da=Ha("react.forward_ref"),Pa=Ha("react.suspense"),Ua=Ha("react.suspense_list"),ka=Ha("react.memo"),Va=Ha("react.lazy"),xa=Ha("react.block"),Fa=Ha("react.server.block"),Ba=Ha("react.fundamental"),Ma=Ha("react.debug_trace_mode"),Ga=Ha("react.legacy_hidden")}function $a(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Aa:switch(e=e.type){case wa:case La:case Oa:case Pa:case Ua:return e;default:switch(e=e&&e.$$typeof){case Na:case Da:case Va:case ka:case Ra:return e;default:return t}}case Ta:return t}}}var ja=Ra,Ya=Aa,Wa=Da,za=wa,Ja=Va,Ka=ka,qa=Ta,Xa=La,Qa=Oa,Za=Pa;Ea.ContextConsumer=Na,Ea.ContextProvider=ja,Ea.Element=Ya,Ea.ForwardRef=Wa,Ea.Fragment=za,Ea.Lazy=Ja,Ea.Memo=Ka,Ea.Portal=qa,Ea.Profiler=Xa,Ea.StrictMode=Qa,Ea.Suspense=Za,Ea.isAsyncMode=function(){return!1},Ea.isConcurrentMode=function(){return!1},Ea.isContextConsumer=function(e){return $a(e)===Na},Ea.isContextProvider=function(e){return $a(e)===Ra},Ea.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Aa},Ea.isForwardRef=function(e){return $a(e)===Da},Ea.isFragment=function(e){return $a(e)===wa},Ea.isLazy=function(e){return $a(e)===Va},Ea.isMemo=function(e){return $a(e)===ka},Ea.isPortal=function(e){return $a(e)===Ta},Ea.isProfiler=function(e){return $a(e)===La},Ea.isStrictMode=function(e){return $a(e)===Oa},Ea.isSuspense=function(e){return $a(e)===Pa},Ea.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===wa||e===La||e===Ma||e===Oa||e===Pa||e===Ua||e===Ga||"object"==typeof e&&null!==e&&(e.$$typeof===Va||e.$$typeof===ka||e.$$typeof===Ra||e.$$typeof===Na||e.$$typeof===Da||e.$$typeof===Ba||e.$$typeof===xa||e[0]===Fa)},Ea.typeOf=$a,Ca.exports=Ea;var ec,tc,nc,rc,ic=0,sc=[],oc=[],ac=a.__b,cc=a.__r,uc=a.diffed,lc=a.__c,dc=a.unmount;function pc(e,t){a.__h&&a.__h(tc,e,ic||t),ic=0;var n=tc.__H||(tc.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:oc}),n.__[e]}function fc(e){return ic=1,hc(wc,e)}function hc(e,t,n){var r=pc(ec++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):wc(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=tc,!tc.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return e.__c}));if(i.every((function(e){return!e.__N})))return!s||s.call(this,e,t,n);var o=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&r.__c.props===e)&&(!s||s.call(this,e,t,n))};tc.u=!0;var s=tc.shouldComponentUpdate,o=tc.componentWillUpdate;tc.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,i(e,t,n),s=r}o&&o.call(this,e,t,n)},tc.shouldComponentUpdate=i}return r.__N||r.__}function gc(e,t){var n=pc(ec++,3);!a.__s&&Tc(n.__H,t)&&(n.__=e,n.i=t,tc.__H.__h.push(n))}function vc(e,t){var n=pc(ec++,4);!a.__s&&Tc(n.__H,t)&&(n.__=e,n.i=t,tc.__h.push(n))}function mc(e){return ic=5,yc((function(){return{current:e}}),[])}function yc(e,t){var n=pc(ec++,7);return Tc(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function _c(e,t){return ic=8,yc((function(){return e}),t)}function bc(e){var t=tc.context[e.__c],n=pc(ec++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(tc)),t.props.value):e.__}function Sc(){for(var e;e=sc.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ec),e.__H.__h.forEach(Ac),e.__H.__h=[]}catch(t){e.__H.__h=[],a.__e(t,e.__v)}}a.__b=function(e){tc=null,ac&&ac(e)},a.__r=function(e){cc&&cc(e),ec=0;var t=(tc=e.__c).__H;t&&(nc===tc?(t.__h=[],tc.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=oc,e.__N=e.i=void 0}))):(t.__h.forEach(Ec),t.__h.forEach(Ac),t.__h=[],ec=0)),nc=tc},a.diffed=function(e){uc&&uc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==sc.push(t)&&rc===a.requestAnimationFrame||((rc=a.requestAnimationFrame)||Cc)(Sc)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==oc&&(e.__=e.__V),e.i=void 0,e.__V=oc}))),nc=tc=null},a.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ec),e.__h=e.__h.filter((function(e){return!e.__||Ac(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],a.__e(n,e.__v)}})),lc&&lc(e,t)},a.unmount=function(e){dc&&dc(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Ec(e)}catch(e){t=e}})),n.__H=void 0,t&&a.__e(t,n.__v))};var Ic="function"==typeof requestAnimationFrame;function Cc(e){var t,n=function(){clearTimeout(r),Ic&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ic&&(t=requestAnimationFrame(n))}function Ec(e){var t=tc,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),tc=t}function Ac(e){var t=tc;e.__c=e.__(),tc=t}function Tc(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function wc(e,t){return"function"==typeof t?t(e):t}function Oc(e,t){for(var n in t)e[n]=t[n];return e}function Lc(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Rc(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function Nc(e){this.props=e}function Dc(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Lc(this.props,e)}function r(t){return this.shouldComponentUpdate=n,S(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Nc.prototype=new A).isPureReactComponent=!0,Nc.prototype.shouldComponentUpdate=function(e,t){return Lc(this.props,e)||Lc(this.state,t)};var Pc=a.__b;a.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Pc&&Pc(e)};var Uc="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function kc(e){function t(t){var n=Oc({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Uc,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Vc=function(e,t){return null==e?null:D(D(e).map(t))},xc={map:Vc,forEach:Vc,count:function(e){return e?D(e).length:0},only:function(e){var t=D(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:D},Fc=a.__e;a.__e=function(e,t,n,r){if(e.then)for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Fc(e,t,n,r)};var Bc=a.unmount;function Mc(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=Oc({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Mc(e,t,n)}))),e}function Gc(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Gc(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Hc(){this.__u=0,this.t=null,this.__b=null}function $c(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function jc(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return S(n,i)}return i.displayName="Lazy",i.__f=!0,i}function Yc(){this.u=null,this.o=null}a.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Bc&&Bc(e)},(Hc.prototype=new A).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=$c(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Gc(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},Hc.prototype.componentWillUnmount=function(){this.t=[]},Hc.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Mc(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&S(E,null,e.fallback);return i&&(i.__h=null),[S(E,null,t.__a?null:e.children),i]};var Wc=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),j(S(zc,{context:t.context},e.__v),t.l)}function Kc(e,t){var n=S(Jc,{__v:e,i:t});return n.containerInfo=t,n}(Yc.prototype=new A).__a=function(e){var t=this,n=$c(t.__v),r=t.o.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),Wc(t,e,r)):i()};n?n(s):s()}},Yc.prototype.render=function(e){this.u=null,this.o=new Map;var t=D(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Yc.prototype.componentDidUpdate=Yc.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Wc(e,n,t)}))};var qc="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Xc=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Qc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zc=/[A-Z0-9]/g,eu="undefined"!=typeof document,tu=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};A.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(A.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var nu=a.event;function ru(){}function iu(){return this.cancelBubble}function su(){return this.defaultPrevented}a.event=function(e){return nu&&(e=nu(e)),e.persist=ru,e.isPropagationStopped=iu,e.isDefaultPrevented=su,e.nativeEvent=e};var ou,au={enumerable:!1,configurable:!0,get:function(){return this.class}},cu=a.vnode;a.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var i in t){var s=t[i];if(!("value"===i&&"defaultValue"in t&&null==s||eu&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var o=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===s?s="":"ondoubleclick"===o?i="ondblclick":"onchange"!==o||"input"!==n&&"textarea"!==n||tu(t.type)?"onfocus"===o?i="onfocusin":"onblur"===o?i="onfocusout":Qc.test(i)?i=o:-1===n.indexOf("-")&&Xc.test(i)?i=i.replace(Zc,"-$&").toLowerCase():null===s&&(s=void 0):o=i="oninput","oninput"===o&&r[i=o]&&(i="oninputCapture"),r[i]=s}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=D(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=D(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",au)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=qc,cu&&cu(e)};var uu=a.__r;a.__r=function(e){uu&&uu(e),ou=e.__c};var lu=a.diffed;a.diffed=function(e){lu&&lu(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),ou=null};var du={ReactCurrentDispatcher:{current:{readContext:function(e){return ou.__n[e.__c].props.value}}}};function pu(e){return!!e&&e.$$typeof===qc}function fu(e){e()}var hu={useState:fc,useId:function(){var e=pc(ec++,11);if(!e.__){for(var t=tc.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useReducer:hc,useEffect:gc,useLayoutEffect:vc,useInsertionEffect:vc,useTransition:function(){return[!1,fu]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=t(),r=fc({h:{__:n,v:t}}),i=r[0].h,s=r[1];return vc((function(){i.__=n,i.v=t,Rc(i.__,t())||s({h:i})}),[e,n,t]),gc((function(){return Rc(i.__,i.v())||s({h:i}),e((function(){Rc(i.__,i.v())||s({h:i})}))}),[e]),n},startTransition:fu,useRef:mc,useImperativeHandle:function(e,t,n){ic=6,vc((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useMemo:yc,useCallback:_c,useContext:bc,useDebugValue:function(e,t){a.useDebugValue&&a.useDebugValue(t?t(e):e)},version:"17.0.2",Children:xc,render:function(e,t,n){return null==t.__k&&(t.textContent=""),j(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return Y(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(j(null,e),!0)},createPortal:Kc,createElement:S,createContext:z,createFactory:function(e){return S.bind(null,e)},cloneElement:function(e){return pu(e)?W.apply(null,arguments):e},createRef:C,Fragment:E,isValidElement:pu,isElement:pu,isFragment:function(e){return pu(e)&&e.type===E},findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:A,PureComponent:Nc,memo:Dc,forwardRef:kc,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:E,Suspense:Hc,SuspenseList:Yc,lazy:jc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:du};function gu(e){function t(e,r,c,u,p){for(var f,h,g,v,b,I=0,C=0,E=0,A=0,T=0,D=0,U=g=f=0,V=0,x=0,F=0,B=0,M=c.length,G=M-1,H="",$="",j="",Y="";Vf)&&(B=(H=H.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:o=o.replace(c,"-webkit-"+c)+";"+o;break;case 207:case 102:o=o.replace(c,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var hl=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&fl(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var s=r;s=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,s=r;s=ml&&(ml=t+1),gl.set(e,t),vl.set(t,e)},Sl="style["+ll+'][data-styled-version="5.3.11"]',Il=new RegExp("^"+ll+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Cl=function(e,t,n){for(var r,i=n.split(","),s=0,o=i.length;s=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(ll))return r}}(n),s=void 0!==i?i.nextSibling:null;r.setAttribute(ll,"active"),r.setAttribute("data-styled-version","5.3.11");var o="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return o&&r.setAttribute("nonce",o),n.insertBefore(r,s),r},Tl=function(){function e(e){var t=this.element=Al(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),Dl=/(a)(d)/gi,Pl=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ul(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Pl(t%52)+n;return(Pl(t%52)+n).replace(Dl,"$1-$2")}var kl=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Vl=function(e){return kl(5381,e)};var xl=Vl("5.3.11"),Fl=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&function(e){for(var t=0;t>>0);if(!t.hasNameForId(r,o)){var a=n(s,"."+o,void 0,r);t.insertRules(r,o,a)}i.push(o),this.staticRulesId=o}else{for(var c=this.rules.length,u=kl(this.baseHash,n.hash),l="",d=0;d>>0);if(!t.hasNameForId(r,g)){var v=n(l,"."+g,void 0,r);t.insertRules(r,g,v)}i.push(g)}}return i.join(" ")},e}(),Bl=/^\s*\/\/.*$/gm,Ml=[":","[",".","#"];function Gl(e){var t,n,r,i,s=void 0===e?ol:e,o=s.options,a=void 0===o?ol:o,c=s.plugins,u=void 0===c?sl:c,l=new gu(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,s,o,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),f=function(e,r,s){return 0===r&&-1!==Ml.indexOf(s[n.length])||s.match(i)?e:"."+t};function h(e,s,o,a){void 0===a&&(a="&");var c=e.replace(Bl,""),u=s&&o?o+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),l(o||!s?"":s,u)}return l.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,f))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),h.hash=u.length?u.reduce((function(e,t){return t.name||fl(15),kl(e,t.name)}),5381).toString():"",h}var Hl=hu.createContext();Hl.Consumer;var $l=hu.createContext(),jl=($l.Consumer,new Nl),Yl=Gl();function Wl(){return bc(Hl)||jl}function zl(e){var t=fc(e.stylisPlugins),n=t[0],r=t[1],i=Wl(),s=yc((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),o=yc((function(){return Gl({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return gc((function(){(function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var s=Object.keys(e),o=Object.keys(t);if(s.length!==o.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),c=0;c1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,sd=/(^-|-$)/g;function od(e){return e.replace(id,"-").replace(sd,"")}var ad=function(e){return Ul(Vl(e)>>>0)};function cd(e){return"string"==typeof e&&!0}var ud=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ld=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function dd(e,t,n){var r=e[n];ud(t)&&ud(r)?pd(r,t):e[n]=t}function pd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(i[n]=e[n]);return i}(t,["componentId"]),s=r&&r+"-"+(cd(e)?e:od(cl(e)));return vd(e,nl({},i,{attrs:p,componentId:s}),n)},Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?pd({},e.defaultProps,t):t}}),Object.defineProperty(h,"toString",{value:function(){return"."+h.styledComponentId}}),i&&tl(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),h}var md=function(e){return function e(t,n,r){if(void 0===r&&(r=ol),!Ca.exports.isValidElementType(n))return fl(1,String(n));var i=function(){return t(n,r,rd.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,nl({},r,{},i))},i.attrs=function(i){return e(t,n,nl({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(vd,e)};function yd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{const e=window.navigator.userAgent.indexOf("MSIE ")>0||window.navigator.userAgent.indexOf("Trident/")>0,t=window.matchMedia("all and (orientation:landscape)").matches,n=window.matchMedia("all and (orientation:portrait)").matches,r=n?window.innerWidth:window.innerHeight;let i=!1,s=!1,o=!1,a=!1;const c=window.innerWidth>po.md&&!("ontouchstart"in document.documentElement||window.ontouchstart);return c||(i=r<=po.md,s=r<=po.md&&r>po.sm,o=r<=po.sm&&r>po.xs,a=r<=po.xs),{isDesktop:c,isIE:e,isLandscape:t,isMobile:i,isMobileExtraSmall:a,isMobileMd:s,isMobileSmall:o,isPortrait:n}},Id=()=>{const[e,t]=fc(Sd());return gc((()=>{const e=()=>{t(Sd())};return window.addEventListener("resize",e,!0),()=>{window.removeEventListener("resize",e,!0)}}),[]),e},Cd=e=>e.some((e=>null!=e.dataDistribution)),Ed=e=>e.reduce(((e,t)=>t.isHidden?e:[...e,t]),[]),Ad={allCategories:[],allServices:[],categories:[],getUpdatedCategories:()=>Promise.resolve([]),selectedSubService:null,services:[],setCategories:()=>null,setSelectedSubService:()=>null},Td=z(Ad);Td.displayName="CategoryContext";const wd=(e,t)=>e.isEssential&&t.isEssential?e.name.toLowerCase()>t.name.toLowerCase()?1:-1:e.isEssential&&!t.isEssential?-1:!e.isEssential&&t.isEssential||e.name.toLowerCase()>t.name.toLowerCase()?1:-1,Od=(e,t)=>t.services?[...e,...t.services]:e,Ld=Dc((({children:e,UC:t})=>{const n=t.getCategoriesBaseInfo(),[r,i]=fc({all:n,visible:Ed(n)}),[s,o]=fc(Ad.selectedSubService),a=yc((()=>({all:r.all.reduce(Od,[]).sort(wd),visible:r.visible.reduce(Od,[]).sort(wd)})),[r]),c=_c((async e=>e===q.SECOND_LAYER||(e=>e.some((e=>Cd(e.services))))(r.visible)?Ed(await t.getCategoriesFullInfo()):Ed(t.getCategoriesBaseInfo())),[t,r]);return S(Td.Provider,{value:{allCategories:r.all,allServices:a.all,categories:r.visible,getUpdatedCategories:c,selectedSubService:s,services:a.visible,setCategories:e=>{i({all:r.all.length&&r.all.length!==e.length?r.all.map((t=>{const n=e.find((e=>e.slug===t.slug));return n||t})):e,visible:Ed(e)})},setSelectedSubService:o}},e)})),Rd=()=>bc(Td),Nd={embeddingContainerClassName:"uc-embed",embeddingOptionsAttributeName:"uc-data",embeddingServiceAttributeName:"uc-consent-name",embeddingShowAllOptions:"all",embeddingShowAllServices:"all",embeddingShowHiddenCategories:"uc-embedding-show-hidden-categories",embeddingShowToggle:"uc-show-toggle",embeddingStyle:"uc-embedding-type",embeddingTitle:"uc-embedding-title",embeddingUseStyling:"uc-styling"},Dd="#0045A5",Pd="#dedede",Ud="#595959",kd="#ffffff",Vd={dataCollected:"uc-dataCollected",dataProtectionOfficer:"uc-dataProtectionOfficer",dataPurposes:"uc-dataPurposes",dataRecipients:"uc-dataRecipients",description:"uc-description",furtherInformation:"uc-furtherInformation",legalBasis:"uc-legalBasis",optInCheckboxWithLabel:"uc-optInCheckboxWithLabel",processingLocation:"uc-processingLocation",processorNames:"uc-processorNames",retentionPeriod:"uc-retentionPeriod",technologiesUsed:"uc-technologiesUsed",thirdCountryTransfer:"uc-thirdCountryTransfer",toggleButton:"uc-embed-toggle-button",toggleDisabled:"toggle-disabled",toggleOff:"toggle-off",toggleOn:"toggle-on"},xd={toggleButton:{style:"display: flex; justify-content: center; align-items: center; background: none; border: none; height: 20px; width: 40px; min-height: 20px; min-width: 40px; outline: none; padding: 0"},toggleButtonMargin:{style:"display: flex; justify-content: center; align-items: center; background: none; border: none; height: 20px; width: 40px; min-height: 20px; min-width: 40px; outline: none; padding: 0; margin-right: 15px"}},Fd="uc-embed-tcf",Bd="uc-embedding-title",Md="uc-embedding-type",Gd="uc-embedding-purpose",Hd="uc-embedding-vendors",$d="uc-embedding-non-iab-purpose",jd="uc-embedding-non-iab-vendors",Yd="uc-embedding-show-hidden-categories",Wd="uc-styling",zd={link:"uc-embed-link",subElementBlockList:"uc-embed-subelement-block-list",subElementBlockListElement:"uc-embed-subelement-block-list-element",subElementDescription:"uc-embed-subelement-description",subElementHeadline:"uc-embed-subelement-headline",subElementItemList:"uc-embed-subelement-item-list",viewMoreButton:"uc-embed-block-list-view-more-button"},Jd={subElementBlockList:{style:"margin: 0px 0px 0px; padding: 0px 15px"},subElementBlockListElement:{style:`font-size: 12px; list-style: none; border: 1px solid ${"#e2e2e2"}; border-radius: 5px; padding: 10px; margin-top: 5px`},viewMoreButton:{style:`border: none; background-color: ${"#fff"}; text-align: left; padding: 15px; color: ${"#0000ff"}`}};let Kd=function(e){return e.CAT="CAT",e.SRV="SRV",e}({});const qd=e=>e.reduce(((e,t)=>e.concat(t.services)),[]).reduce(((e,t)=>(e.push({serviceId:t.id,status:t.consent.status}),e)),[]),Xd=(e,t)=>{if(void 0===t)throw new Error("altElement of nullishOperation can not be undefined");return null!=e?e:t},Qd=e=>({purposes:e.purposes.map((e=>({consent:e.consent||!1,id:e.id,legitimateInterestConsent:!!e.showLegitimateInterestToggle&&Xd(e.legitimateInterestConsent,!0)}))),specialFeatures:e.specialFeatures.map((e=>({consent:e.consent||!1,id:e.id}))),vendors:e.vendors.map((e=>({consent:e.consent||!1,id:e.id,legitimateInterestConsent:e.specialPurposes.length&&0===e.legitimateInterestPurposes.length&&0===e.purposes.length||!!e.legitimateInterestPurposes.length&&Xd(e.legitimateInterestConsent,!0)})))}),Zd=(e,t)=>e.map((e=>{const r=t.find((t=>e.slug===t.slug)),i=e.services.map((e=>{const{consent:t}=(null==r?void 0:r.services.find((t=>e.id===t.id)))||e,n=e;return n.consent=t,n}));return n(n({},e),{},{services:i})})),ep=(e,t)=>{let n=oe.CATEGORIES_PURPOSES;if(e&&wn(e)){const{defaultView:t,hideDataProcessingServices:r}=e.secondLayer;n=t===Kd.CAT?oe.CATEGORIES_PURPOSES:oe.SERVICES_VENDORS,t===Kd.SRV&&r&&(n=oe.CATEGORIES_PURPOSES)}if(e&&On(e)&&t===ms.DEFAULT){const{defaultView:t,hideDataProcessingServices:r}=e;n=t===Kd.CAT?oe.CATEGORIES_PURPOSES:oe.SERVICES_VENDORS,t===Kd.SRV&&r&&(n=oe.CATEGORIES_PURPOSES)}return n},tp=z({core:null,data:null,labels:null,setSettingsCore:()=>{},setSettingsData:()=>{},setSettingsLabels:()=>{},setSettingsUI:()=>{},ui:null});tp.displayName="SettingsContext";const np=Dc((({children:e,UC:t})=>{const[n,r]=fc(t.getSettingsCore()),[i,s]=fc(t.getSettingsData()),[o,a]=fc(t.getSettingsLabels()),[c,u]=fc(t.getSettingsUI());return S(tp.Provider,{value:{core:n,data:i,labels:o,setSettingsCore:r,setSettingsData:s,setSettingsLabels:a,setSettingsUI:u,ui:c}},e)})),rp=()=>bc(tp),ip=(e,t)=>{if(null===e)return" - ";if(e<=0)return t.session;let n=e,r="";if(n>=86400){const e=Math.floor(n/31536e3);e>0&&(n%=31536e3,r=1===e?r.concat(`${e} ${t.year}, `):r.concat(`${e} ${t.years}, `));const i=Math.floor(n/2628e3);i>0&&(n%=2628e3,r=1===i?r.concat(`${i} ${t.month}, `):r.concat(`${i} ${t.months}, `));const s=Math.floor(e/4),o=Math.floor(n/86400),a=0===s?o:o-s;return a>0&&(r=1===a?r.concat(`${a} ${t.day}`):r.concat(`${a} ${t.days}`)),r=r.replace(/,\s*$/,""),r}const i=Math.floor(n/3600);i>0&&(n%=3600,r=1===i?r.concat(`${i} ${t.hour}, `):r.concat(`${i} ${t.hours}, `));const s=Math.floor(n/60);s>0&&(r=1===s?r.concat(`${s} ${t.minute}, `):r.concat(`${s} ${t.minutes}, `));const o=n%60;return o>0&&(r=1===o?r.concat(`${o} ${t.second}, `):r.concat(`${o} ${t.seconds}, `)),r=r.replace(/,\s*$/,""),r};async function sp(e){let t;try{t=await window.fetch(e)}catch(e){console.warn(`Usercentrics: Failed to fetch data from server: ${e}`)}return t&&t.status>=400&&console.warn("Usercentrics: Failed to fetch data from server"),t}function op(e,t,n){return"*"===e?`${e} (${t})`:e.includes("*")?`${e} (${n})`:e}const ap=function(e){const t=(typeof window["safari"]!=="undefined"&&window["safari"].pushNotification||!!navigator.userAgent.match(/Version\/[\d.]+.*Safari/)&&!navigator.userAgent.match(/Version\/[\d.]+.*Chrome/)).toString();return"[object SafariRemoteNotification]"===t||"true"===t}(),cp="#0000ff",up="#848484",lp="#595959",dp="#e2e2e2",pp={collapsedArrow:"uc-embed-collapsed-arrow",collapsedButton:"uc-embed-collapsed-button",collapsedButtonContent:"uc-embed-collapsed-button-content",collapsedContent:"uc-embed-collapsed-content",collapsedLink:"uc-embed-collapsed-link",collapsedLinkContent:"uc-embed-collapsed-link-content",headline:"uc-embed-headline",listDiv:"uc-embed-list",listHeadline:"uc-embed-list-headline",listHeadlineDescription:"uc-embed-list-headline-description",listItem:"uc-embed-list-item",listItemContent:"uc-embed-list-item-content",listItemHeadline:"uc-embed-list-item-headline",openedArrow:"uc-embed-opened-arrow",openedButton:"uc-embed-opened-button",openedButtonContent:"uc-embed-opened-button-content",openedContent:"uc-embed-opened-content",openedLink:"uc-embed-opened-link",openedLinkContent:"uc-embed-opened-link-content",outerDiv:"uc-embed-container",storedInfoAction:"uc-embed-stored-info-action",storedInfoActionItem:"uc-embed-stored-info-action-item",storedInfoItem:"uc-embed-stored-info-item",storedInfoItemData:"uc-embed-stored-info-item-data",storedInfoItemDataElement:"uc-embed-stored-info-item-data-element",storedInfoItemHeadline:"uc-embed-stored-info-item-headline",subElement:"uc-embed-subelement",subElementItemListElement:"uc-embed-subelement-item-list-element",subElementStoredInfo:"uc-embed-subelement-stored-info",subservice:"uc-subservice",subserviceLinkArrow:"uc-subservice-link-arrow",subserviceLinkButton:"uc-subservice-link-button",subserviceLinkText:"uc-subservice-link-text",subserviceName:"uc-subservice-name",subservicesInfo:"uc-subservices-info",subservicesSection:"uc-subservices"},fp={backArrow:{style:`border: solid ${cp}; border-width: 1px 0 0 1px; display: inline-block; padding: 3px; height: 0px; margin-top: 4px; ransform: rotate(-45deg); -webkit-transform: rotate(-45deg);`},backButton:{style:"flex: 1; display: flex; justify-content: flex-start; border: none; background-color: white; text-align: left; margin: 0px; padding: 0px 15px 15px 15px; width:100%; cursor: pointer"},backText:{style:`display: inline-block; font-weight: normal; font-size: 0.90em; margin: 0; margin-left: 4px; color: ${cp}`},categoryOnlyDiv:{style:`display: flex; border-bottom: 1px solid ${dp}; justify-content: space-between; align-items: center`},collapsableButton:{style:"border: none; display: inline-flex; background-color: white; text-align: left; padding: 15px; justify-content: space-between; width:100%"},collapsableDiv:{style:`border-bottom: 1px solid ${dp}`},collapsableDivContentHidden:{style:"display: none"},collapsableDivContentShown:{style:"display: inline-block; padding-bottom: 15px; width: 100%"},collapsableLink:{style:"border: none; display: inline-flex; background-color: white; text-align: left; padding: 7px 15px; margin: 0px; width:100%; justify-content: flex-start"},collapsedArrow:{style:`border: solid ${up}; border-width: 0 1px 1px 0; display: inline-block; padding: 3px; height: 0px; margin-top: 4px; margin-left:10px; transform: rotate(45deg); -webkit-transform: rotate(45deg);`},collapsedButtonContent:{style:"display: inline-block; font-weight: normal; font-size: 1.17em; margin: 0;"},collapsedLinkArrow:{style:`border: solid ${cp}; border-width: 0 1px 1px 0; display: inline-block; padding: 3px; height: 0px; margin-top: 4px; margin-left:10px; transform: rotate(45deg); -webkit-transform: rotate(45deg);`},collapsedLinkContent:{style:`display: inline-block; font-weight: bold; font-size: 1.0em; color: ${cp}; margin-top: 1px`},detailsArrow:{style:`border: solid ${cp}; border-width: 0 1px 1px 0; display: inline-block; padding: 3px; height: 0px; margin-top: 4px; ransform: rotate(-45deg); -webkit-transform: rotate(-45deg);`},detailsButton:{style:`width: 100%; display: flex; justify-content: space-between; padding: 12px; margin-top: 12px; border: 1px solid ${"#dedede"}; border-radius: 4px; cursor: pointer; background: none`},detailsText:{style:`display: inline-block; font-weight: normal; font-size: 0.90em; margin: 0; margin-right: 4px; color: ${cp}`},flexContainer:{style:"display: flex"},headlines:{style:"padding: 7px 15px; margin: 0px"},headlinesBorderBottom:{style:`padding: 30px 15px 24px; margin: 0px; border-bottom: 1px solid ${dp}`},link:{style:"font-size: 12px; padding: 0px 15px; text-decoration: none"},list:{style:"display: inline-grid"},openedArrow:{style:`border: solid ${up}; border-width: 0 1px 1px 0; display: inline-block; padding: 3px; height: 0px; margin-top: 7px; margin-left:10px; transform: rotate(-135deg); -webkit-transform: rotate(-135deg);`},openedButtonContent:{style:"display: inline-block; font-weight: bold; font-size: 1.17em; margin: 0;"},openedLinkArrow:{style:`border: solid ${cp}; border-width: 0 1px 1px 0; display: inline-block; padding: 3px; height: 0px; margin-top: 7px; margin-left:10px; transform: rotate(-135deg); -webkit-transform: rotate(-135deg);`},outerBox:{style:'display: grid; padding: 24px 0px; background-color: white; border-radius: 10px; font-family: "Arial"'},outerBoxNoTopPadding:{style:'display: grid; padding-bottom: 24px; background-color: white; border-radius: 10px; font-family: "Arial"'},storedInfoAction:{style:"display: flex; flex-direction: row; justify-content: center; width: 100%;"},storedInfoActionLink:{style:`font-size: 14px; margin: 0; cursor: pointer; color: ${cp}`},storedInfoActionText:{style:"font-size: 14px; margin: 0"},storedInfoItem:{style:`display: flex; flex-direction: column; padding: 12px; border: 1px solid ${dp};`},storedInfoItemDescription:{style:`font-size: 12px; color: ${lp}; margin: 0px 0px 4px 0px;`},storedInfoItemHeader:{style:"font-size: 12px; font-weight: bold; margin: 0; margin-bottom: 4px;"},storedInfoItemSubElement:{style:"font-size: 12px; margin: 0;"},storedInfoItemSubElementRow:{style:"display: flex; font-size: 12px; margin: 0; margin-top: 4px;"},storedInfoItemSubElementTitle:{style:"min-width: 30%; margin: 0"},subElement:{style:"margin: 5px 0px 15px"},subElementDescription:{style:"font-size: 12px; padding: 0px 15px; margin: 5px 0px 0px"},subElementExpandableLink:{style:"margin: 5px 15px 15px; width: calc(100% - 30px)"},subElementItemList:{style:"margin: 5px 0px 10px; padding-right: 15px"},subElementItemListElement:{style:"font-size: 12px; padding: 7px 0px 5px 0px"},subserviceInfo:{style:`font-size: 12px; padding: 0px 15px; margin: 0px 0px 24px; color: ${lp}`},subserviceList:{style:"padding: 0 15px;"},subserviceListItem:{style:`display: flex; flex-direction: row; justify-content: space-between; padding: 12px; margin-top: 12px; border: 1px solid ${dp}; border-radius: 4px;`},subserviceListItemName:{style:"font-weight: normal; font-size: 0.90em; margin: 0;"},verticalSpacer:{style:"display: block; min-height: 16px"}};let hp=function(e){return e.DATA_COLLECTED="dataCollected",e.DATA_PROTECTION_OFFICER="dataProtectionOfficer",e.DATA_PURPOSES="dataPurposes",e.DATA_RECIPIENTS="dataRecipients",e.DESCRIPTION="description",e.FURTHER_INFORMATION="furtherInformation",e.LEGAL_BASIS="legalBasis",e.OPT_IN_CHECKBOX_WITH_LABEL="optInCheckboxWithLabel",e.PROCESSING_LOCATION="processingLocation",e.PROCESSOR_NAMES="processorNames",e.RETENTION_PERIOD="retentionPeriod",e.TECHNOLOGIES_USED="technologiesUsed",e.THIRD_COUNTRY_TRANSFER="thirdCountryTransfer",e}({}),gp=function(e){return e.ALL="all",e.CATEGORY="category",e.CATEGORY_ONLY="category-only",e}({}),vp=function(e){return e.VENDOR="vendor",e.PURPOSE="purpose",e}({});const mp=e=>e&&e.some((e=>e.processingCompany));var yp,_p=new Uint8Array(16);function bp(){if(!yp&&!(yp="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yp(_p)}var Sp=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Ip=[],Cp=0;Cp<256;++Cp)Ip.push((Cp+256).toString(16).substr(1));function Ep(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Ip[e[t+0]]+Ip[e[t+1]]+Ip[e[t+2]]+Ip[e[t+3]]+"-"+Ip[e[t+4]]+Ip[e[t+5]]+"-"+Ip[e[t+6]]+Ip[e[t+7]]+"-"+Ip[e[t+8]]+Ip[e[t+9]]+"-"+Ip[e[t+10]]+Ip[e[t+11]]+Ip[e[t+12]]+Ip[e[t+13]]+Ip[e[t+14]]+Ip[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&Sp.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n}function Ap(e,t,n){var r=(e=e||{}).random||(e.rng||bp)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Ep(r)}const Tp=5,wp=(e,t)=>{var n;const r=Xd(e.getAttribute(Nd.embeddingServiceAttributeName),Nd.embeddingShowAllServices),i=(e=>{const t=e.getAttribute(Nd.embeddingOptionsAttributeName);if(!t||t.includes(Nd.embeddingShowAllOptions))return Object.values(hp);const n=t.replace(" ","").split(",");return Object.values(hp).filter((e=>n.includes(e)))})(e),s=Xd(e.getAttribute(Nd.embeddingTitle),t),o=null!==(n=e.getAttribute(Nd.embeddingStyle))&&void 0!==n?n:"all",a=Xd(e.getAttribute(Nd.embeddingShowToggle),"false"),c=Xd(e.getAttribute(Nd.embeddingUseStyling),"false");return{embedService:r,embedTitle:s,embedType:o,sections:i,showHiddenCategories:"true"===e.getAttribute(Nd.embeddingShowHiddenCategories),showToggle:"true"===a,useUcStyling:"true"===c}},Op=(e,t)=>{const n=e.getAttribute(Md)===vp.PURPOSE?vp.PURPOSE:vp.VENDOR,r=e.getAttribute(Bd)||(n===vp.PURPOSE?t.titles.purposes:t.secondLayer.vendorsTab),i=e.getAttribute(Hd)||t.titles.iabVendors,s=e.getAttribute(jd)||t.titles.nonIabVendors,o=e.getAttribute(Gd)||t.vendor.purposes,a=e.getAttribute($d)||t.titles.nonIabPurposes,c=e.getAttribute(Wd);return{embedTitle:r,embedType:n,iabPurposeTitle:o,iabVendorsTitle:i,nonIabPurposeTitle:a,nonIabVendorsTitle:s,showHiddenCategories:"true"===e.getAttribute(Yd),useUcStyling:"false"!==c}},Lp=e=>{for(;e.lastElementChild;)e.removeChild(e.lastElementChild)},Rp=(e,...t)=>{t.forEach((t=>{Object.entries(t).forEach((([t,n])=>{e.setAttribute(t,n)}))}))},Np=(e,t,n,r=[],i=!1)=>{const s=document.createElement(e);if(t&&"string"==typeof t&&""!==t?s.className=t:t&&Array.isArray(t)&&s.classList.add(...t),n&&n.length>0&&n.forEach((e=>{(!e.style||e.style&&i)&&Rp(s,e)})),r)if("string"==typeof r)s.innerText=r;else if(Array.isArray(r)){const e=document.createDocumentFragment();r.forEach((t=>e.appendChild(t))),s.appendChild(e)}else s.appendChild(r);return s},Dp=(e,t)=>{const{isTCF:n,useUcStyling:r,isSubservice:i,nonTcfClassName:s}=t;let o="h5";return r||n||i||(o="h4"),Np(o,n?zd.subElementHeadline:`uc uc-heading ${s}`,[fp.headlines],e,r)},Pp=(e,t)=>{const{isTCF:n,useUcStyling:r,nonTcfClassName:i}=t;return Np("p",n?zd.subElementDescription:`uc uc-p ${i}`,[fp.subElementDescription],e,r)},Up=(e,t,n,r,i)=>{let s,o=Vd.toggleButton,a=[Vd.toggleButton];e?(s=(()=>{const e=`\n \n \n \n \n \n \n \n \n \n`;return(new DOMParser).parseFromString(e,"image/svg+xml").documentElement})(),o+="-disabled",a=[...a,Vd.toggleDisabled]):(s=t?(()=>{const e=`\n \n \n \n \n \n \n `;return(new DOMParser).parseFromString(e,"image/svg+xml").documentElement})():(()=>{const e=`\n \n \n \n \n \n `;return(new DOMParser).parseFromString(e,"image/svg+xml").documentElement})(),t?(o+="-on",a=[...a,Vd.toggleOn]):(o+="-off",a=[...a,Vd.toggleOff]));const c=Np("button",a,[n?xd.toggleButtonMargin:xd.toggleButton],[s],r);return c.setAttribute("data-testid",o),c.setAttribute("role","switch"),c.setAttribute("aria-disabled",e?"true":"false"),c.setAttribute("aria-checked",t?"true":"false"),c.setAttribute("aria-readonly",e?"true":"false"),e||(c.onclick=i),c},kp=(e,t,n)=>Np("p",`${n.isTCF?"uc uc-p ":""}${pp.subservicesInfo}`,[fp.subserviceInfo],`${e} ${e>1?t.subservices:t.subservice}`,n.useUcStyling),Vp=(e,t)=>Np("h4",t.isTCF?zd.subElementHeadline:"uc uc-title",[],e,t.useUcStyling),xp=(e,t,n)=>{const{isTCF:r,useUcStyling:i}=n,{name:s,parentName:o,scrollToId:a}=e,c=!!e.parentName;let u;const l=Np("div",`${r?"":"uc "}${pp.subserviceLinkText}`,c?[fp.backText]:[fp.detailsText],c?`${t.back} ${o}`:t.details,i),d=Np("i",`${r?"":"uc "}${pp.subserviceLinkArrow}`,c?[fp.backArrow]:[fp.detailsArrow],[],i);if(c)u=Np("button",`${r?"":"uc "}${pp.subserviceLinkButton}`,[fp.backButton],[d,l],i);else{const e=Np("p",`${r?"":"uc "}${pp.subserviceName}`,[fp.subserviceListItemName],s,i),t=Np("div",`${r?"":"uc "}${pp.subserviceLinkText}`,[],[l,d],i);u=Np("button",`${r?"":"uc "}${pp.subserviceLinkButton}`,[fp.detailsButton],[e,t],i)}return u.addEventListener("click",(()=>{const e=document.getElementById(c?`uc-service-${a}`:`uc-subservice-${a}`);"uc-embed-collapsed-button"===(null==e?void 0:e.className)&&e.click(),null==e||e.scrollIntoView({behavior:"smooth"})})),u},Fp=(e,t,n,r,i)=>{e.appendChild(Np("div",pp.subElement,[fp.subElement],[...n?[Dp(n,t)]:[],...r?[Pp(r,t)]:[],...i?[i]:[]],t.useUcStyling))},Bp=(e,t,n,r)=>{n.length>0&&e.appendChild(Np("div",pp.subElement,[fp.subElement],[...r?[Dp(r,t)]:[],...n.map((e=>Pp(e,t)))],t.useUcStyling))},Mp=(e,t,n,r,i,s)=>{const{isTCF:o,useUcStyling:a,nonTcfClassName:c}=t,u=Np("a",o?zd.link:`uc uc-a ${c}`,[{href:n},fp.link],r,a);Fp(e,t,i,s,u)},Gp=(e,t,n,r,i)=>{const{isTCF:s,useUcStyling:o,nonTcfClassName:a}=t,c=Np("ul",s?zd.subElementItemList:`uc uc-list ${a}`,[fp.subElementItemList],n.map((e=>Np("li",pp.subElementItemListElement,[fp.subElementItemListElement],e,o))),o);Fp(e,t,r,i,c)},Hp=(e,t,n,r,i)=>{const s=document.getElementById(r);if(s){const{collapsed:r,collapsedContent:o,collapsedStyles:a,opened:c,openedContent:u,openedStyles:l}="button"===i?{collapsed:pp.collapsedButton,collapsedContent:pp.collapsedButtonContent,collapsedStyles:fp.collapsedButtonContent,opened:pp.openedButton,openedContent:pp.openedButtonContent,openedStyles:fp.openedButtonContent}:{collapsed:pp.collapsedLink,collapsedContent:pp.collapsedLinkContent,collapsedStyles:fp.collapsedLinkContent,opened:pp.openedLink,openedContent:pp.openedLinkContent,openedStyles:fp.openedLinkArrow};"inline-block"===s.style.display?(Rp(s,fp.collapsableDivContentHidden),s.setAttribute("class",pp.collapsedContent),Rp(t,a),Rp(n,"button"===i?fp.collapsedArrow:fp.collapsedLinkArrow),n.setAttribute("class",pp.collapsedArrow),t.setAttribute("class",o),e.setAttribute("class",r)):(Rp(s,fp.collapsableDivContentShown),s.setAttribute("class",pp.openedContent),"button"===i?(Rp(t,l),Rp(n,fp.openedArrow)):Rp(n,fp.openedLinkArrow),n.setAttribute("class",pp.openedArrow),t.setAttribute("class",u),e.setAttribute("class",c))}},$p=(e,t,n,r,i)=>{let s;if(r){let e=null,o=null;const a=Np("h4",pp.collapsedButtonContent,[fp.collapsedButtonContent],t,r),c=Np("i",pp.collapsedArrow,[fp.collapsedArrow],[],r);if(i&&i.showToggle){const{service:t}=i;a.id=`${t.id}-title`,e=Up(t.isEssential,t.consent.status,!1,r,(e=>{const n=window[le];return e.stopPropagation(),n?t.consent.status?n.rejectService(t.id):n.acceptService(t.id):Promise.reject()})),e.setAttribute("aria-labelledby",`${t.id}-title`),o=Np("div","",[fp.flexContainer],[e,c],r)}const u=Np("button",pp.collapsedButton,[fp.collapsableButton],null!=i&&i.showToggle&&e&&o?[a,o]:[a,c],r);u.setAttribute("data-testid","uc-embed-collapsable-button"),i&&u.setAttribute("id",i.isSubservice?`uc-subservice-${i.service.id}`:`uc-service-${i.service.id}`);const l=Np("div",pp.collapsedContent,[fp.collapsableDivContentHidden,{id:`uc-embed-collapsable-${Ap()}`}],n,r);l.setAttribute("data-testid","uc-embed-collapsable-content"),u.addEventListener("click",(()=>Hp(u,a,c,l.id,"button"))),s=Np("div",pp.listItem,[fp.collapsableDiv],[u,l],r)}else s=Np("div",pp.listItem,[],[Np("h4",pp.listItemHeadline,[],t,r),Np("div",pp.listItemContent,[],n,r)],r);e.appendChild(s)},jp=(e,t,n,r)=>{const{cookieMaxAgeSeconds:i,usesNonCookieAccess:s,cookieRefresh:o,usesCookies:a}=t;if(i||s||o||a){const t=((e,t,n,r,i)=>{const{maximumAge:s,nonCookieStorage:o,yes:a,no:c,cookieRefresh:u,cookieStorage:l}=e,d=[];return null!==i&&d.push(`${l}: ${i?`${a}`:`${c}`}`),null!==t&&d.push(`${s}: ${ip(t,e)}`),null!==r&&d.push(`${u}: ${r?`${a}`:`${c}`}`),null!==n&&d.push(`${o}: ${n?`${a}`:`${c}`}`),d})(n,i,s,o,a);Gp(e,r,t,n.title,null)}},Yp=(e,t,n,r,i,s)=>{const o=[],{useUcStyling:a}=i;switch(r){case"loading":o.push(Np("p",pp.storedInfoActionItem,[fp.storedInfoActionText],n.loading,a));break;case"retry":{o.push(Np("p",pp.storedInfoActionItem,[fp.storedInfoActionText],n.error,a));const r=Np("p",pp.storedInfoActionItem,[fp.storedInfoActionLink],n.tryAgain,a);r.addEventListener("click",(()=>{zp(e,null,t,n,i,s)})),o.push(r);break}}const c=Np("div",pp.storedInfoAction,[fp.storedInfoAction],o,a),u=Np("div",pp.storedInfoItem,[fp.storedInfoItem],c,a);e.appendChild(Np("div",pp.subElementStoredInfo,[fp.subElementExpandableLink],u,a))},Wp=(e,t,n,r)=>{const i=Np("p",pp.storedInfoItemDataElement,[fp.storedInfoItemSubElementTitle],`${t}: `,r),s=Np("p",pp.storedInfoItemDataElement,[fp.storedInfoItemSubElement],`${n}`,r);e.push(Np("div",pp.storedInfoItemData,[fp.storedInfoItemSubElementRow],[i,s],r))},zp=async(e,t,n,r,i,s)=>{const o=()=>{for(;e.firstChild;)e.removeChild(e.firstChild)},a=t=>{o(),Yp(e,t,r,"retry",i)},c=t=>{o(),((e,t,n,r,i)=>{const{useUcStyling:s,isTCF:o}=r,a=t.disclosures.map((e=>{const t=[],{cookieRefresh:r,description:o,domain:a,identifier:c,maxAgeSeconds:u,name:l,purposes:d,type:p}=e,f=c?`${c}`:`${l}`;if(t.push(Np("p",pp.storedInfoItemHeadline,[fp.storedInfoItemHeader],f,s)),o&&t.push(Np("p",pp.storedInfoItemHeadline,[fp.storedInfoItemDescription],o,s)),Wp(t,n.type,`${p}`,s),"cookie"===p.toString()&&(Wp(t,n.duration,ip(u,n),s),null!=r&&Wp(t,n.cookieRefresh,r?n.yes:n.no,s)),a&&Wp(t,n.domain,op(a,n.anyDomain,n.multipleDomains),s),d&&d.length>0){const e=[];d.forEach((t=>{var n;e.push((null==i||null===(n=i.find((e=>e.id===t)))||void 0===n?void 0:n.name)||"")})),Wp(t,n.purposes,e.join("; "),s)}return Np("div",pp.storedInfoItem,[fp.storedInfoItem],t,s)}));if(o&&t.domains&&t.domains.length>0){const e=t.domains.map((e=>{const t=[],{domain:r,use:i}=e;return t.push(Np("p",pp.storedInfoItemHeadline,[fp.storedInfoItemHeader],r,s)),i&&Wp(t,n.purposes,i,s),Np("div",pp.storedInfoItem,[fp.storedInfoItem],t,s)}));a.push(Np("div","",[fp.verticalSpacer],"",s)),a.push(...e)}e.appendChild(Np("div",pp.subElementStoredInfo,[fp.subElementExpandableLink],a,s))})(e,t,r,i,s)};if(o(),Yp(e,"",r,"loading",i),n&&""!==n)try{const e=await sp(n),t=e?await e.json():null;if(null!=t&&t.disclosures){const{disclosures:e,domains:n}=t,r={disclosures:e,domains:n};null!=r&&r.disclosures&&c(r)}else a(n)}catch(e){a(n)}else t&&t.disclosures.length>0&&c(t)},Jp=async(e,t,n,r,i)=>{let s=null;const o={disclosures:[]};if(n&&""!==n)try{const e=await sp(n),t=e?await e.json():null;if(null!=t&&t.disclosures){const{disclosures:e,domains:n}=t;s={disclosures:e,domains:n}}return o}catch(e){return o}else{if(!(t&&t.disclosures.length>0))return o;s=t}return s.disclosures&&(o.disclosures=s.disclosures.map((t=>{const{cookieRefresh:n,description:r,domain:s,identifier:o,maxAgeSeconds:a,name:c,purposes:u,type:l}=t,d=o?`${e.name}: ${o};`:`${e.name}: ${c};`,p=r?`${r};`:"",f=`${e.type}: ${l};`,h=`${e.duration}: ${ip(a,e)}`,g=s?`${e.domain}: ${op(s,e.anyDomain,e.multipleDomains)};`:"",v=null!=n?`${e.cookieRefresh}: ${n?e.yes:e.no}`:"";let m="";if(u&&u.length>0){const t=[];u.forEach((e=>{var n;t.push((null==i||null===(n=i.find((t=>t.id===e)))||void 0===n?void 0:n.name)||"")})),m=`${e.purposes}: ${t.join("; ")}`}let y="";return"cookie"===l.toString()&&(y=`${h};`,""!==v&&(y+=` ${v};`)),`${d} ${p} ${f} ${y} ${g} ${m}`}))),r.isTCF&&s.domains&&(o.domains=s.domains.map((e=>{const{domain:t,use:n}=e;return`${t}: ${n}`}))),o},Kp=(e,t,r,i,s)=>{const{deviceStorage:o,deviceStorageDisclosureUrl:a}=t;if((null==o?void 0:o.disclosures)&&o.disclosures.length>0||a&&""!==a){const t=document.createDocumentFragment();((e,t,r,i,s,o,a,c)=>{const{isTCF:u,useUcStyling:l,nonTcfClassName:d}=a;let p;if(l){const e=Np("div",pp.collapsedLinkContent,[fp.collapsedLinkContent],t,l),n=Np("i",pp.collapsedArrow,[fp.collapsedLinkArrow],[],l),u=Np("button",pp.collapsedLink,[fp.collapsableLink],[e,n],l),d=Np("div",pp.collapsedContent,[fp.collapsableDivContentHidden,{id:`uc-embed-collapsable-${Ap()}`}],r,l);u.addEventListener("click",(()=>{zp(d,i,s,o,a,c),Hp(u,e,n,d.id,"link")})),p=Np("div",pp.subElement,[],[u,d],l)}else{const e=Np("div",pp.listItemContent,[],r,l);p=Np("div",pp.subElement,[],[Np(l||u?"h5":"h4",u?pp.listItemHeadline:`uc uc-heading ${d}`,[],t,l),e],l),Jp(o,i,s,a,c).then((t=>{t.disclosures.length>0?(Gp(e,a,t.disclosures,"",null),t.domains&&t.domains.length>0&&(e.appendChild(Np("div","",[fp.verticalSpacer],"",l)),Gp(e,a,t.domains,"",null))):Gp(e,n(n({},a),{},{nonTcfClassName:u?null:`${d}Error`}),[o.error],"",null)}))}e.appendChild(p)})(e,r.storedInformation,t,o,a,r,i,s)}},qp=(e,t,n,r)=>{const i=document.createDocumentFragment();t.forEach((e=>{i.appendChild(xp({name:e.name,scrollToId:e.id},n,r))})),e.appendChild(i)},Xp={tcfData:null,setTcfData:()=>{}},Qp=z(Xp);Qp.displayName="TcfContext";const Zp=Dc((({children:e})=>{const[t,n]=fc(Xp.tcfData);return S(Qp.Provider,{value:{setTcfData:n,tcfData:t}},e)})),ef=()=>bc(Qp),tf={abTestVariant:"",baseHref:"",clearCategoryPurposeScrollToId:()=>{},clearServiceVendorScrollToId:()=>{},closeView:()=>{},currentLanguage:"",firstLayerVariant:null,isAmpEnabled:!1,isInFullScreen:!1,previousLanguage:"",previousView:q.NONE,scrollToIdTabViewCategoryPurpose:"",scrollToIdTabViewServiceVendors:"",scrollToSubServices:!1,secondLayerVariant:null,setBaseHref:()=>{},setIsInFullScreen:()=>{},setKeyPressed:()=>{},setLanguage:()=>{},setScrollToIdTabViewCategoryPurpose:()=>{},setScrollToIdTabViewServiceVendor:()=>{},setScrollToSubServices:()=>{},setTabView:()=>{},settingsCloseView:q.NONE,setView:()=>Promise.resolve(),tabView:oe.CATEGORIES_PURPOSES,uiVariant:ms.DEFAULT,view:q.NONE},nf=z(tf);nf.displayName="UiContext";const rf=Dc((({children:e,initialUIValues:t,UC:n})=>{const{ui:r,setSettingsLabels:i,setSettingsUI:s}=rp(),[o]=fc(n.getAbTestVariant()),[a,c]=fc(tf.baseHref),[u]=fc(t.ampEnabled),[l]=fc(t.variant),[d,p]=fc(null),[f,h]=fc(null),[g,v]=fc(null),m=mc(!1),y=mc(null);gc((()=>{(wn(r)||An(r))&&(d!==r.firstLayer.variant&&p(r.firstLayer.variant),f!==r.secondLayer.variant&&h(r.secondLayer.variant))}),[r]);const[_,b]=fc(tf.scrollToIdTabViewCategoryPurpose),[I,C]=fc(tf.scrollToIdTabViewServiceVendors),[E,A]=fc(tf.scrollToSubServices),[T,w]=fc(tf.tabView),[O,L]=fc((()=>{switch(t.initialLayer){case vs.FIRST_LAYER:return{current:q.FIRST_LAYER,previous:tf.previousView};case vs.PRIVACY_BUTTON:return{current:q.PRIVACY_BUTTON,previous:tf.previousView};case vs.SECOND_LAYER:return{current:q.SECOND_LAYER,previous:tf.previousView};default:return{current:q.NONE,previous:tf.previousView}}})),[R,N]=fc(tf.settingsCloseView),[D,P]=fc(tf.isInFullScreen),[U,k]=fc({currentLanguage:tf.currentLanguage,previousLanguage:tf.previousLanguage}),{getUpdatedCategories:V,setCategories:x,categories:F}=Rd(),{setTcfData:B}=ef(),M=e=>{m.current=e},G=async e=>{(e=>{if(!(O.current!==q.NONE&&O.current!==q.PRIVACY_BUTTON||e!==q.FIRST_LAYER&&e!==q.SECOND_LAYER)){var t,n,r;const e=(null===(t=document)||void 0===t||null===(t=t.activeElement)||void 0===t?void 0:t.querySelector(":focus"))||(null===(n=document)||void 0===n||null===(n=n.activeElement)||void 0===n||null===(n=n.shadowRoot)||void 0===n?void 0:n.querySelector(":focus"))||(null===(r=document)||void 0===r?void 0:r.activeElement);e&&v(e)}O.current!==q.FIRST_LAYER&&O.current!==q.SECOND_LAYER||e!==q.NONE&&e!==q.PRIVACY_BUTTON||(g&&m.current&&g.focus(),v(null),M(!1))})(e),await n.updateLayer((e=>{switch(e){case q.FIRST_LAYER:return vs.FIRST_LAYER;case q.SECOND_LAYER:return vs.SECOND_LAYER;case q.PRIVACY_BUTTON:return vs.PRIVACY_BUTTON;case q.NONE:default:return vs.NONE}})(e)).then((async()=>{if(e!==q.NONE){if(e!==q.FIRST_LAYER&&e!==q.SECOND_LAYER){const t=await V(e);x(t)}else x(Zd(await V(e),F));i(n.getSettingsLabels()),s(n.getSettingsUI()),l===ms.TCF&&B(n.getTCFData())}else if((()=>{const e=Array.from(document.getElementsByClassName(Fd));return Array.from(document.getElementsByClassName(Nd.embeddingContainerClassName)).length>0||e.length>0})()){const t=await V(e);x(t)}})),e!==q.SECOND_LAYER?N(e):N(O.current),L((t=>({current:e,previous:t.current})))};return S(nf.Provider,{value:{abTestVariant:o,baseHref:a,clearCategoryPurposeScrollToId:()=>{b("")},clearServiceVendorScrollToId:()=>{C("")},closeView:async()=>{if(r&&!On(r)){const e=window.location.href;let t=!r.privacyButtonUrls||0===r.privacyButtonUrls.contains.length;r.privacyButtonUrls&&r.privacyButtonUrls.contains.length>0&&r.privacyButtonUrls.contains.some((t=>e.includes(t)))&&(t=!0),r.enablePrivacyButton&&t?await G(q.PRIVACY_BUTTON):await G(q.NONE)}else await G(q.NONE)},currentLanguage:U.currentLanguage,firstLayerVariant:d,isAmpEnabled:u,isInFullScreen:D,languageModalRef:y,previousLanguage:U.previousLanguage,previousView:O.previous,scrollToIdTabViewCategoryPurpose:_,scrollToIdTabViewServiceVendors:I,scrollToSubServices:E,secondLayerVariant:f,setBaseHref:c,setIsInFullScreen:P,setKeyPressed:M,setLanguage:e=>{k((t=>({currentLanguage:e,previousLanguage:t.currentLanguage})))},setScrollToIdTabViewCategoryPurpose:b,setScrollToIdTabViewServiceVendor:C,setScrollToSubServices:A,setTabView:w,settingsCloseView:R,setView:G,tabView:T,uiVariant:l,view:O.current}},S("div",{ref:y}),e)})),sf=()=>bc(nf),of=()=>({service:Array.from(document.getElementsByClassName(Nd.embeddingContainerClassName)),tcf:Array.from(document.getElementsByClassName(Fd))}),af=(e,t,n)=>{const[r,i]=fc(null),{core:s,ui:o}=rp(),{abTestVariant:a,setBaseHref:c,view:u,previousView:l}=sf(),{setBodyScrolling:d}=(()=>{const[e,t]=fc(!0);return gc((()=>{if(document.body){if(!e){if(!document.getElementById("uc-overflow-style")){const e=document.createElement("style");e.id="uc-overflow-style",e.innerHTML=".overflowHidden {overflow: hidden !important;}",document.body.appendChild(e)}document.body.classList.add("overflowHidden")}e&&document.body&&document.body.classList.contains("overflowHidden")&&document.body.classList.remove("overflowHidden")}}),[e,t]),{setBodyScrolling:t}})(),p=_d();gc((()=>{if(t.ampEnabled){const e=zs();c((null==e?void 0:e.baseHref)||"")}switch(t.initialLayer){case vs.FIRST_LAYER:d(!1);break;case vs.PRIVACY_BUTTON:d(!0);break;case vs.SECOND_LAYER:d(!1);break;default:d(!0)}}),[]),gc((()=>{if(s){const e=_a(o,ae.includes(s.language.selected),t.variant);Qs(e,p)||n(e)}}),[o]),gc((()=>{if(u!==l){const e=new window.CustomEvent(X.VIEW_CHANGED,{detail:{previousView:l,view:u}});window.dispatchEvent(e)}}),[l,u]),gc((()=>{if(o&&s&&u!==l&&u!==r){switch(u){case q.FIRST_LAYER:if(!On(o)){const{isOverlayEnabled:t}=o.firstLayer;d(!t),l!==q.SECOND_LAYER&&Zs(u,K.CMP_SHOWN,a,e.setTrackingPixel)}break;case q.SECOND_LAYER:if(!On(o)){const{isOverlayEnabled:t}=o.secondLayer;d(!t),l!==q.FIRST_LAYER&&Zs(u,K.CMP_SHOWN,a,e.setTrackingPixel)}break;case q.PRIVACY_BUTTON:case q.NONE:default:d(!0)}i(u)}}),[e.setTrackingPixel,l,d,u,a,o,r])};class cf{constructor({scope:e,method:t,result:n,setResult:i}){r(this,"scope",void 0),r(this,"isMounted",!1),r(this,"method",void 0),r(this,"mostRecentMutationId",void 0),r(this,"previousResult",void 0),r(this,"result",void 0),r(this,"setResult",void 0),this.scope=e,this.method=t,this.mostRecentMutationId=Ap(),this.result=n,this.setResult=i,this.runMutation=this.runMutation.bind(this)}execute(e){return this.isMounted=!0,[this.runMutation,e]}async runMutation(...e){this.onMutationStart();const t=this.generateNewMutationId();return this.mutate(...e).then((e=>(this.onMutationCompleted(e,t),e||{data:null}))).catch((e=>{throw this.onMutationError(e,t),e}))}mutate(...e){return this.method.call(this.scope,...e)}onMutationStart(){this.result.loading||this.updateResult({called:!0,data:null,error:null,loading:!0})}onMutationCompleted(e,t){this.isMostRecentMutation(t)&&this.updateResult({called:!0,data:e?e.data:null,error:null,loading:!1})}onMutationError(e,t){this.isMostRecentMutation(t)&&this.updateResult({called:!0,data:null,error:e,loading:!1})}generateNewMutationId(){const e=Ap();return this.mostRecentMutationId=e,e}isMostRecentMutation(e){return this.mostRecentMutationId===e}updateResult(e){!this.isMounted||this.previousResult&&Qs(this.previousResult,e)||(this.setResult(e),this.previousResult=e)}}const uf=(e,t)=>{const[n,r]=fc({called:!1,loading:!1}),i=mc();return(i.current||(i.current=new cf({method:e,result:n,scope:t,setResult:r})),i.current).execute(n)};let lf=function(e){return e.AUTO="auto",e.START="start",e.CENTER="center",e.END="end",e}({}),df=function(e){return e.HORIZONTAL="horizontal",e.VERTICAL="vertical",e}({}),pf=function(e){return e.OBSERVED="observed",e.REQUESTED="requested",e}({});df.VERTICAL,df.HORIZONTAL;const ff={[df.VERTICAL]:"height",[df.HORIZONTAL]:"width"},hf={[df.VERTICAL]:"top",[df.HORIZONTAL]:"left"},gf={[df.VERTICAL]:"marginTop",[df.HORIZONTAL]:"marginLeft"},vf={[df.VERTICAL]:"marginBottom",[df.HORIZONTAL]:"marginRight"},mf=50;var yf="3.37.0";const _f=e=>{switch(e){case ms.CCPA:return"CCPA";case ms.DEFAULT:return"GDPR";case ms.TCF:return"TCF";default:return""}},bf=({UC:e,children:t})=>{const{core:n,data:r}=rp(),{uiVariant:i,view:s}=sf(),o=async t=>{try{var o,a,c,u;const{code:d,regionCode:p}=await e.fetchUserCountry(),f=(l={cmpLayer:s,controllerId:null!==(o=null==r?void 0:r.controllerId)&&void 0!==o?o:"",msg:`EUD ERROR[V2]: ${t.message}`,origin:window.location.origin,settingsId:null!==(a=null==n?void 0:n.id)&&void 0!==a?a:"",settingsVersion:null!==(c=null==n?void 0:n.version)&&void 0!==c?c:"",stackTrace:null!==(u=t.stack)&&void 0!==u?u:"",timestamp:Date.now().toString(),uiVariant:_f(i),uiVersion:yf,userAgent:window.navigator.userAgent,userCountry:d,userRegion:p},JSON.stringify(l));throw new Error(f)}catch(e){throw new Error(`Error: ${e}`)}var l},[a]=function(e){var t=pc(ec++,10),n=fc();return t.__=e,tc.componentDidCatch||(tc.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}((e=>o(e)));return a?null:S(E,null,t)},Sf=["children"],If=e=>{let{children:t}=e,n=s(e,Sf);const r=mc(null),o=mc([]),a=['a[href]:not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([type="hidden"]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','[contenteditable]:not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].join(", ");return gc((()=>{const e=()=>{null!=(null==r?void 0:r.current)&&(o.current=Array.from(r.current.querySelectorAll(a)))},t=new MutationObserver((()=>{e()}));return e(),null!=(null==r?void 0:r.current)&&t.observe(r.current,{childList:!0}),()=>{t.disconnect()}}),[r.current]),gc((()=>{const e=e=>{const{code:t,shiftKey:n}=e;if("Tab"===t){var i;if(null!=(null==r?void 0:r.current)&&(o.current=Array.from(r.current.querySelectorAll(a))),!o.current)return;const{length:t,0:s,[t-1]:c}=o.current;if(1===t)return void e.preventDefault();const u=null===(i=document.activeElement)||void 0===i||null===(i=i.shadowRoot)||void 0===i?void 0:i.querySelector(":focus-visible");if(void 0===u&&s&&(e.preventDefault(),s.focus()),!n&&u===c&&s)return e.preventDefault(),void s.focus();n&&u===s&&c&&(e.preventDefault(),c.focus())}};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[o]),S(Hc,{fallback:S(E,null)},S("div",i({id:"focus-lock-id"},n,{ref:r}),t))},Cf=({children:e})=>{const{setKeyPressed:t}=sf(),n=_c((e=>{const{code:n}=e;t("Enter"===n||"Escape"===n)}),[t]);return gc((()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)})),[n]),S(Hc,{fallback:S(E,null)},S(E,null,e))},Ef=jc((()=>dynamicImportPolyfill("./index-ff15d66e.js",import.meta.url))),Af=jc((()=>dynamicImportPolyfill("./PrivacyButton-9bf13a30.js",import.meta.url))),Tf=({initialUIValues:e,restartCMP:t,onThemeChange:n,UC:r})=>{const{view:i,clearCategoryPurposeScrollToId:s,clearServiceVendorScrollToId:o,setTabView:a,setView:c,uiVariant:u}=sf(),{isDesktop:l}=Id(),{ui:d}=rp();af(r,e,n);const[p]=(e=>{const[t,n]=fc(!1),[r,i]=fc(of()),{categories:s,allCategories:o,services:a,allServices:c,setCategories:u}=Rd(),{core:l,labels:d,ui:p}=rp(),{uiVariant:f}=sf(),h=e.getTCFData(),{setSettingsUI:g,setSettingsLabels:v}=rp();return gc((()=>{(r.service.length>0||r.tcf.length>0)&&Array.isArray(o)&&!t&&(n(!0),e.loadServices().then((async()=>{const t=await e.getCategoriesFullInfo();u(Zd(t,o)),g(e.getSettingsUI()),v(e.getSettingsLabels())})))}),[o,t,r]),gc((()=>{if(null!=l&&l.isEmbeddingsEnabled&&null!=f&&Cd(c)){n(!0);const e={categories:{all:o,visible:s},services:{all:c,visible:a}};if(r.tcf.length>0&&l.isTcfEnabled&&h&&Sn(d)&&dynamicImportPolyfill("./tcf-0f5b7fe9.js",import.meta.url).then((t=>{t.embedTCF(h,e,r.tcf,d)})),d&&r.service.length>0&&Array.isArray(o)&&o.length>0){const t=In(d)?d.secondLayer.serviceTab:"Services";dynamicImportPolyfill("./gdpr-0f4d6492.js",import.meta.url).then((n=>{n.embedGDPR(e,d,t,r.service)}))}}}),[l,f,a,s,o,c,p,r]),[async()=>{i(of())}]})(r),{acceptAllDefault:f,acceptAllTCF:h,closeCMP:g,denyAllDefault:v,denyAllTCF:m,updateLanguage:y,showSecondLayer:_}=(({initialUIValues:e,onThemeChange:t,restartCMP:n,restartEmbeddings:r,UC:i})=>{const[s,o]=fc(!0),[,a]=fc(!1),{abTestVariant:c,clearServiceVendorScrollToId:u,closeView:l,isAmpEnabled:d,setIsInFullScreen:p,setLanguage:f,setScrollToIdTabViewServiceVendor:h,setTabView:g,setView:v,settingsCloseView:m,uiVariant:y,view:_}=sf(),{categories:b,getUpdatedCategories:S,services:I,setCategories:C}=Rd(),{setTcfData:E}=ef(),{core:A,ui:T,setSettingsLabels:w,setSettingsUI:O}=rp(),[L,{loading:R}]=uf(i.dismissAmp,i),[N,{loading:D}]=uf(i.changeLanguage,i),[P,{loading:U}]=uf(i.saveOptOutForCcpa,i),[k,{loading:V}]=uf(i.updateServices,i),[x,{loading:F}]=uf(i.acceptAllServices,i),[B,{loading:M}]=uf(i.acceptAllForTCF,i),[G,{loading:H}]=uf(i.acceptAllAmp,i),[$,{loading:j}]=uf(i.denyAllServices,i),[Y,{loading:W}]=uf(i.denyAllForTCF,i),[z,{loading:J}]=uf(i.denyAllAmp,i),[Z]=uf(i.updateChoicesForTCF,i),ee=_c((async()=>{!F&&A&&x().then((async()=>{d&&await G(),Zs(_,K.ACCEPT_ALL,c,i.setTrackingPixel),C(await S(_)),w(i.getSettingsLabels()),O(i.getSettingsUI())}))}),[i,G,x,F,A,d,S,C,_]),te=_c((async()=>{if(F||M||H||!A)return;const e=_===q.FIRST_LAYER?Tt.FIRST_LAYER:Tt.SECOND_LAYER;Promise.all([B(e),x()]).then((async()=>{d&&await G(),Zs(_,K.ACCEPT_ALL,c,i.setTrackingPixel),C(await S(_)),E(i.getTCFData()),w(i.getSettingsLabels()),O(i.getSettingsUI())}))}),[i,G,H,B,M,x,F,A,d,S,C,E,_]),ne=_c((async(e,t)=>{M||W||!A||Z(e,t).then((()=>{Zs(_,K.SAVE,c,i.setTrackingPixel),E(i.getTCFData())}))}),[i,G,H,B,M,x,F,A,d,S,C,E,_]),re=_c((async e=>{if(U)return;const t=!e;Zs(_,t?K.CCPA_TOGGLES_ON:K.CCPA_TOGGLES_OFF,c,i.setTrackingPixel),a(t),P(t),C(await S(_)),w(i.getSettingsLabels()),O(i.getSettingsUI())}),[P,U]),ie=_c((async(e,t,n=fs.EXPLICIT)=>{if(0===e.length)throw new Error(Q.SERVICE_MISSING_ID);if(V||!A)return;const r=e.reduce(((e,n)=>I.some((e=>e.id===n))?[...e,{serviceId:n,status:t}]:e),[]);k(r,n).then((async()=>{Zs(_,K.SAVE,c,i.setTrackingPixel),C(await S(_)),w(i.getSettingsLabels()),O(i.getSettingsUI())}))}),[i,A,S,C,k,V,_]),se=_c((()=>{switch(e.variant){case ms.CCPA:return re(!0);case ms.DEFAULT:return ee();case ms.TCF:return te();default:return null}}),[ee,te,re,e.variant]),ce=_c((()=>i.areAllConsentsAccepted()),[i]),ue=_c((()=>i.getIsConsentRequired()),[i]),de=_c((()=>i.clearStorage()),[i]),pe=_c((async()=>{R||(!d||_===q.SECOND_LAYER&&m===q.FIRST_LAYER||(await L(),p(!1)),_===q.SECOND_LAYER?await v(m):l())}),[l,L,R,d,p,m,v,_]),fe=_c((async()=>{j||J||!A||$().then((async()=>{d&&await z(),Zs(_,K.DENY_ALL,c,i.setTrackingPixel),C(await S(_)),w(i.getSettingsLabels()),O(i.getSettingsUI())}))}),[i,A,S,z,J,$,j,d,C,_]),he=_c((async()=>{if(j||W||!A)return;const e=_===q.FIRST_LAYER?Tt.FIRST_LAYER:Tt.SECOND_LAYER;Promise.all([Y(e),$()]).then((async()=>{d&&await i.denyAllAmp(),Zs(_,K.DENY_ALL,c,i.setTrackingPixel),C(await S(_)),E(i.getTCFData()),w(i.getSettingsLabels()),O(i.getSettingsUI())}))}),[i,Y,W,$,j,S,d,A,C,E,_]),ge=_c((()=>{switch(e.variant){case ms.CCPA:return re(!1);case ms.DEFAULT:return fe();case ms.TCF:return he();default:return null}}),[re,fe,he,e.variant]),ve=_c((()=>i.enableScriptsForServicesWithConsent()),[i]),me=_c((()=>i.getSettingsCore().language.selected),[i]),ye=_c((()=>i.getServicesBaseInfo()),[i]),_e=_c((()=>i.getServicesFullInfo()),[i]),be=_c((()=>i.getSettingsCore()),[i]),Se=_c((()=>i.getSettingsLabels()),[i]),Ie=_c((()=>i.getSettingsUI()),[i]),Ce=_c((()=>i.getControllerId()),[i]),Ee=_c((()=>{var e;return null===(e=i.getTCFData())||void 0===e?void 0:e.vendors}),[i]),Ae=_c((()=>i.getTCFDisclosedVendorsSegmentString()),[i]),Te=_c((()=>i.getThirdPartyCount()),[i]),we=_c((async e=>!!await i.injectTCString(e)&&(await n(),!0)),[i]),Oe=_c((async()=>v(q.FIRST_LAYER)),[v]),Le=_c((async e=>{let t=!1;return"string"==typeof e&&(t=["purposes","vendors","services","categories"].includes(e),t&&("purposes"!==e&&"categories"!==e||g(oe.CATEGORIES_PURPOSES),"vendors"!==e&&"services"!==e||g(oe.SERVICES_VENDORS))),e&&!t?(g(oe.SERVICES_VENDORS),setTimeout((()=>{h(e)}))):(t||g(ep(T,y)),u()),_!==q.SECOND_LAYER?v(q.SECOND_LAYER):new Promise((e=>e()))}),[v,g,h,u]),Re=_c((async n=>{A&&ae.includes(A.language.selected)!==ae.includes(n.toLowerCase())&&t(_a(T,ae.includes(n.toLowerCase()),e.variant)),D||N(n.toLowerCase()).then((async()=>{C(Zd(await S(_),b)),w(i.getSettingsLabels()),f(n.toLowerCase()),y===ms.TCF&&E(i.getTCFData())}))}),[i,b,N,D,e.variant,S,t,C,f,E,y,_]);return gc((()=>{window[le]={acceptAllConsents:se,acceptService:(e,t=fs.EXPLICIT)=>ie([e],!0,t),acceptServices:(e,t=fs.EXPLICIT)=>ie(e,!0,t),areAllConsentsAccepted:ce,clearStorage:de,closeCMP:pe,denyAllConsents:ge,denyAndCloseCcpa:async()=>{await re(!1),pe()},enableScriptsForServicesWithConsent:ve,getActiveLanguage:me,getControllerId:Ce,getServicesBaseInfo:ye,getServicesFullInfo:_e,getSettingsCore:be,getSettingsLabels:Se,getSettingsUI:Ie,getTCFDisclosedVendorsSegmentString:Ae,getTCFVendors:Ee,getThirdPartyCount:Te,injectTCString:we,isConsentRequired:ue,isInitialized:()=>!0,rejectService:(e,t=fs.EXPLICIT)=>ie([e],!1,t),rejectServices:(e,t=fs.EXPLICIT)=>ie(e,!1,t),restartCMP:n,restartEmbeddings:r,showFirstLayer:Oe,showSecondLayer:e=>Le(e),updateChoicesForTcf:ne,updateLanguage:Re}}),[_]),gc((()=>{var e;window[le]&&null!==(e=window[le])&&void 0!==e&&e.isInitialized()&&s&&(o(!1),window.dispatchEvent(new window.CustomEvent(X.INITIALIZED)))}),[window[le],s]),{acceptAllDefault:ee,acceptAllTCF:te,closeCMP:pe,denyAllDefault:fe,denyAllTCF:he,showSecondLayer:e=>Le(e),updateLanguage:Re}})({initialUIValues:e,onThemeChange:n,restartCMP:t,restartEmbeddings:p,UC:r});if(i===q.NONE)return null;const b=S(Ef,{acceptAllDefault:f,acceptAllTCF:h,denyAllDefault:v,denyAllTCF:m,onClose:g,onLanguageChange:y,showSecondLayer:_,UC:r});return S(Hc,{fallback:S(E,null)},S(bf,{UC:r},S(Cf,null,S(Af,{show:i===q.PRIVACY_BUTTON,iconUrl:On(d)?d.iconUrl:"",onClick:async()=>{a(ep(d,u)),o(),s(),await c(q.SECOND_LAYER)},position:On(d)?d.position:"",isMobile:!l}),i===q.FIRST_LAYER||i===q.SECOND_LAYER?S(If,null,b):b)))};let wf=function(e){return e.BANNER_CONTENT=".uc-banner-content",e.BUTTON_ACCEPT=".uc-accept-all-button",e.BUTTON_CUSTOMIZE=".uc-customize-button",e.BUTTON_DENY=".uc-deny-all-button",e.BUTTON_MORE=".uc-more-button",e.BUTTON_SAVE=".uc-save-button",e.BUTTONS=".uc-action-button",e.BUTTONS_CONTAINER=".uc-buttons-container",e.BUTTONS_CONTAINER_WRAPPER=".uc-buttons-container-wrapper",e.CARD_TITLE=".uc-card-title",e.CARD_DESCRIPTION=".uc-card-description",e.LANGUAGE_SWITCH=".uc-language-switch",e.LAYER=".uc-layer",e.LINKS=".uc-links",e.LOGO=".uc-logo",e.MESSAGE=".uc-message",e.PRIVACY_BUTTON=".uc-privacy-button",e.TAB_BUTTON=".uc-tab-button",e.TAB_BUTTON_ACTIVE=".uc-tab-button-active",e.TAB_CONTENT=".uc-tab-content",e.THIRD_COUNTRY_FILTER=".uc-third-country-data-transfer-filter",e.TITLE=".uc-title",e.TITLE_CONTAINER=".uc-title-container",e.CONTROLLER_ID_CARD=".uc-controller-id",e.TAB_BUTTONS_CONTAINER=".uc-tab-buttons-container",e.SECOND_LAYER=".uc-second-layer",e.POWERED_BY=".uc-powered-by",e.FOOTER_WRAPPER=".uc-footer-wrapper",e.BANNER_FOOTER_CONTENT=".uc-footer-content",e}({}),Of=function(e){return e.DEFAULT="default",e.DESKTOP="desktop",e.IE="ie",e.LANDSCAPE="landscape",e.PORTRAIT="portrait",e.MOBILE="mobile",e.MOBILE_S="mobileSmall",e.MOBILE_XS="mobileExtraSmall",e.HOVER="hover",e}({});const Lf={directives:["border","height","margin","max-width","padding","width","max-height"],selector:wf.BANNER_CONTENT},Rf={directives:["border","font","height","margin","padding","width","flex","display","background","color","border"],selector:wf.BUTTONS},Nf={directives:["flex","width","justify-content","align-items","padding","column-gap","row-gap","margin"],selector:wf.BUTTONS_CONTAINER},Df={directives:["order","flex","height","margin","padding","width","border","display","background","color","border",":hover"],selector:wf.BUTTON_ACCEPT},Pf={directives:["order"],selector:wf.BUTTON_CUSTOMIZE},Uf={directives:["order","flex","height","margin","padding","width","border","display","background","color","border"],selector:wf.BUTTON_DENY},kf={directives:["order","flex","height","margin","padding","width","border","display","background","color","border"],selector:wf.BUTTON_MORE},Vf={directives:["order","flex","height","margin","padding","width","border","display","background","color","border"],selector:wf.BUTTON_SAVE},xf={directives:["font-size","font-weight","line-height"],selector:wf.CARD_DESCRIPTION},Ff={directives:["font-size","font-weight","line-height"],selector:wf.CARD_TITLE},Bf={directives:["background","color","font-size"],selector:wf.LANGUAGE_SWITCH},Mf={directives:["display","border","height","margin","max-width","padding","width","min-height","flex-direction","box-shadow"],selector:wf.LAYER},Gf={directives:["display","border","height","margin","max-width","padding","width","min-height","flex-direction","box-shadow"],selector:wf.SECOND_LAYER},Hf={directives:["display","border","height","margin","max-width","padding","width","min-height","flex-direction","text-decoration"],selector:wf.POWERED_BY},$f={directives:["font","line-height","text"],selector:wf.LINKS},jf={directives:["height","width","max-width","max-height"],selector:wf.LOGO},Yf={directives:["color","font","text"],selector:wf.MESSAGE},Wf={directives:["background","font","height","line-height","margin","padding","text","width"],selector:wf.TAB_BUTTON},zf={directives:["background","font","height","line-height","margin","padding","text","width","border-bottom"],selector:wf.TAB_BUTTON_ACTIVE},Jf={directives:["display","width","justify-content","align-items","margin","padding"],selector:wf.TAB_BUTTONS_CONTAINER},Kf={directives:["background","color","margin","padding"],selector:wf.TAB_CONTENT},qf={directives:["color","font","line-height","text"],selector:wf.TITLE},Xf={directives:["width"],selector:wf.TITLE_CONTAINER},Qf=[Lf,Rf,Nf,Df,Pf,Uf,kf,Vf,xf,Ff,Bf,Mf,$f,jf,Yf,{directives:["bottom","left","right","width","height"],selector:wf.PRIVACY_BUTTON},Wf,zf,Kf,qf,Xf,{directives:["color","background-color","border-color"],selector:wf.CONTROLLER_ID_CARD},{directives:["color","border-color","border-radius","background-color"],selector:wf.THIRD_COUNTRY_FILTER},Jf,Gf,Hf,{directives:["flex","width","justify-content","align-items","padding","column-gap","row-gap","margin"],selector:wf.BUTTONS_CONTAINER_WRAPPER},{directives:["border","padding","flex"],selector:wf.FOOTER_WRAPPER},{directives:["flex","padding","margin","border","justify-content","align-items","width","height","display"],selector:wf.BANNER_FOOTER_CONTENT}],Zf=(e,{directives:t},r=!1)=>{const i=/\s*([a-z-]+)\s*:\s*((?:[^;]*url\(.*?\)[^;]*|[^;]*)*)\s*(?:;|$)/gi;let s,o;for(;null!==(s=i.exec(e));){const e=s[1];if("string"!=typeof e)break;t.some((t=>0===e.indexOf(t)))&&(o=n(n({},o),{},{[e.toLowerCase()]:`${s[2]} ${r?"!important":""}`}))}return o},eh=e=>{const t=Qf.find((t=>e.split("__")[0]===t.selector));return t?-1!==e.indexOf(Of.DESKTOP)?{allowedCss:t,media:Of.DESKTOP}:-1!==e.indexOf(Of.IE)?{allowedCss:t,media:Of.IE}:-1!==e.indexOf(Of.LANDSCAPE)?{allowedCss:t,media:Of.LANDSCAPE}:-1!==e.indexOf(Of.MOBILE_S)?{allowedCss:t,media:Of.MOBILE_S}:-1!==e.indexOf(Of.MOBILE_XS)?{allowedCss:t,media:Of.MOBILE_XS}:-1!==e.indexOf(Of.MOBILE)?{allowedCss:t,media:Of.MOBILE}:-1!==e.indexOf(Of.PORTRAIT)?{allowedCss:t,media:Of.PORTRAIT}:-1!==e.indexOf(Of.HOVER)?{allowedCss:t,media:Of.HOVER}:{allowedCss:t,media:Of.DEFAULT}:null},th=e=>e.trim().replace(/\s*,\s*/,", "),nh=e=>{const t=/([\s\S]+?)\{([\s\S]*?)\}/gm,r=e.replace(/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"");let i,s=[];for(;null!==(i=t.exec(r));){const e=th(i[1]),t=eh(e),r=t&&Zf(i[2].trim(),t.allowedCss,t.media===Of.HOVER);if(r&&null!=t&&t.allowedCss){const e=s.find((e=>e.selector===t.allowedCss.selector));s=e?s.map((e=>e.selector===t.allowedCss.selector?n(n({},e),{},{[t.media]:r}):e)):[...s,{[t.media]:r,selector:t.allowedCss.selector}]}}return s},rh=z({css:[]});rh.displayName="CustomCssContext";const ih=Dc((({children:e,UC:t})=>{const n=t.getSettingsUI(),[r,i]=fc(n&&n.customCss?nh(n.customCss):[]);return gc((()=>{i(n&&n.customCss?nh(n.customCss):[])}),[n]),S(rh.Provider,{value:{css:r}},e)})),sh=(e,t=!1)=>{const{css:r}=bc(rh),i=Id(),s=e?((e,t,{isDesktop:r,isIE:i,isLandscape:s,isPortrait:o,isMobileMd:a,isMobileExtraSmall:c,isMobileSmall:u},l)=>{const d=e.find((e=>e.selector===t));let p=null;const f=e=>{e&&(p=n(p?n({},p):{},e))};return d&&l?f(d.hover):d&&(f(d.default),r&&f(d.desktop),u&&f(d.mobileSmall),c&&f(d.mobileExtraSmall),a&&f(d.mobile),s&&!r&&f(d.landscape),o&&!r&&f(d.portrait),i&&f(d.ie)),p})(r,e,i,t):null;return{rules:s}},oh=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase(),ah={blockConsumeFocus:!1,blockFocus:!1,consumeNextFocus:()=>null,langSelectorOpen:!1,nextFocus:null,setBlockConsumeFocus:()=>null,setBlockFocus:()=>null,setLangSelectorStatus:()=>null,setNextFocus:()=>null},ch=z(ah);ch.displayName="GlobalStateContext";const uh=Dc((({children:e})=>{const{view:t}=sf(),[n,r]=fc(ah.blockFocus),[i,s]=fc(ah.blockConsumeFocus),[o,a]=fc(ah.nextFocus),[c,u]=fc(ah.langSelectorOpen),[l,d]=fc(ah.nextFocus),p=e=>{r(e)};gc((()=>{null===o&&p(!1)}),[o]);return S(ch.Provider,{value:{blockConsumeFocus:i,blockFocus:n,consumeNextFocus:()=>{var e;if("string"==typeof o)try{var t;const e=document.getElementById(ce),n=(null==e||null===(t=e.shadowRoot)||void 0===t?void 0:t.querySelector(`[data-testid=${oh(o)}]`))||null;null!==n&&n.focus()}catch(e){}else null==o||null===(e=o.current)||void 0===e||e.focus(),a(null!==l?l:null);s(!1)},langSelectorOpen:c,nextFocus:o,setBlockConsumeFocus:e=>{s(e)},setBlockFocus:p,setLangSelectorStatus:e=>{u(e)},setNextFocus:e=>{null!==o&&t===q.SECOND_LAYER?d(o):d(null),a(e)}}},e)})),lh=()=>bc(ch),dh=bd.div(["all:initial;color:",";direction:",";font-family:",";font-size:",";font-weight:",";line-height:1.15;-webkit-text-size-adjust:100%;-webkit-overflow-scrolling:touch;*,*:after,*:before{box-sizing:border-box;}[hidden]{display:none;}a{font-weight:normal;}button,[type='button'],[type='reset'],[type='submit']{cursor:pointer;font-family:inherit;line-height:inherit;transition:background-color 0.2s ease-in-out;}img{border-style:none;}"],(({theme:e})=>e.typography.color.primary),(({theme:e})=>e.typography.rtlEnabled?"rtl":"unset"),(({theme:e})=>e.typography.font),(({theme:e})=>e.typography.size.root),(({theme:e})=>e.typography.weight.regular));var ph=Dc((({children:e})=>S(dh,null,e)));a.debounceRendering=setTimeout;if(window.UC_UI_IS_RENDERED||!1)throw new Error(Q.DUPLICATED_SCRIPT);window.UC_UI_IS_RENDERED=!0;let fh=!1;async function hh(e){let t;t=e.options.rulesetId?new Ws(e.options.rulesetId,n(n({},e.options),{},{useRulesetId:!0})):new Ws(e.settingsId,n({},e.options));return{initialUIValues:await t.init(),usercentrics:t}}function gh(){let e=document.getElementById(ce);var t;e&&(null===(t=e.parentNode)||void 0===t||t.removeChild(e));e=document.createElement("div"),e.style.display="none",e.id=ce,e.setAttribute("data-created-at",Date.now().toString());const n=document.createElement("div");if(n.setAttribute("data-nosnippet","1"),n.setAttribute("data-testid","uc-app-container"),"function"==typeof e.attachShadow||document.head.attachShadow||HTMLElement.prototype.attachShadow){e.attachShadow({mode:"open"}).appendChild(n)}else e.appendChild(n);return document.body.appendChild(e),fh=!0,{appContainer:n,rootContainer:e}}async function vh(){return new Promise((e=>{"loading"!==document.readyState?((()=>{let e=null;try{e=localStorage.getItem(de),e||console.info(Q.USE_LOADER)}catch(e){console.warn(Q.INACCESSIBLE_LOCAL_STORAGE)}})(),e(gh())):document.addEventListener("readystatechange",(()=>{fh||e(gh())}))}))}const mh=({initialUIValues:e,restartCMP:t,target:n,usercentrics:r})=>{const i=r.getSettingsCore(),s=r.getSettingsUI(),[o,a]=fc(s&&i?_a(s,ae.includes(i.language.selected),e.variant):Ia);return gc((()=>{setTimeout((()=>{const{rootContainer:e}=n;e&&"none"===e.style.display&&e.style.removeProperty("display")}),200)}),[n]),hd.displayName="ThemeProvider",S(zl,{target:n.appContainer,disableCSSOMInjection:!0},S(hd,{theme:o},S(ph,null,S(ih,{UC:r},S(np,{UC:r},S(Ld,{UC:r},S(Zp,null,S(rf,{UC:r,initialUIValues:e},S(uh,null,S(Tf,{onThemeChange:a,initialUIValues:e,restartCMP:t,UC:r}))))))))))};void 0!==e&&e.initialize({importFunctionName:"dynamicImportPolyfill",modulePath:"/dir"}),async function e(){const t=(()=>{const e=document.getElementById("usercentrics-cmp"),t=e&&e.dataset,r=t?ue.AMP_ENABLED in e.dataset:window[ue.AMP_ENABLED];let i=t?e.dataset[ue.SETTINGS_ID]:window[ue.SETTINGS_ID];const s=t?e.dataset[ue.RULESET_ID]:window[ue.RULESET_ID];if(!window.__webpack_nonce__&&e&&e.nonce&&(window.__webpack_nonce__=e.nonce),r){const e=zs();i=(null==e?void 0:e.id)||i}let o=null;try{o=t&&e.dataset[ue.CONTROLLER_IDS]&&JSON.parse(e.dataset[ue.CONTROLLER_IDS]||"[]")}catch(e){}const a=window.UC_UI_EXCLUDE_ACCEPT_ALL_VENDORS||[],c=a.length>0&&Array.isArray(a)&&a.every((e=>"number"==typeof e));return{options:n(n({ampEnabled:r,blockDataLayerPush:t&&ue.BLOCK_DATA_LAYER_PUSH in e.dataset,controllerId:t&&e.dataset[ue.CONTROLLER_ID]},o&&{controllerIds:o}),{},{createTcfApiStub:t?ue.TCF_ENABLED in e.dataset:window[ue.TCF_ENABLED],disableServerConsents:t&&ue.DISABLE_SERVER_CONSENTS in e.dataset,disableTracking:t&&ue.DISABLE_TRACKING in e.dataset,enableDeprecatedV1ConsentSaving:t&&ue.DEPRECATED_V1_CONSENT_SAVING_ENABLED in e.dataset,euMode:t&&ue.EU_MODE in e.dataset,excludeAcceptAllVendors:c?a:[],language:t?e.dataset[ue.LANGUAGE]:window[ue.LANGUAGE],prefetchServices:!t||!(ue.AVOID_PREFETCH_SERVICES in e.dataset),rulesetId:s,sandboxEnv:t&&ue.SANDBOX_ENV in e.dataset,settingsCache:t&&e.dataset[ue.SETTINGS_CACHE],storeServiceIdToNameMapping:t&&ue.STORE_SERVICE_ID_TO_NAME_MAPPING in e.dataset,suppressCmpDisplay:t&&ue.SUPPRESS_CMP_DISPLAY in e.dataset||!0===window.UC_UI_SUPPRESS_CMP_DISPLAY,userCountryData:window.UC_UI_USER_COUNTRY_DATA||null,userSessionData:window.UC_UI_USER_SESSION_DATA||null,useRulesetId:!!s,version:t&&e.dataset[ue.VERSION]}),settingsId:i}})();let r,i;try{[r,i]=await Promise.all([hh(t),vh()])}catch(e){if(e.showErrorCmp){const{appContainer:e,rootContainer:t}=gh();t.style.removeProperty("display");j(S(Hc,{fallback:null},S(jc((()=>dynamicImportPolyfill("./ErrorCmp-4fc43a89.js",import.meta.url))),null)),e)}else console.error(e);return}let s="";document.body&&document.body.classList.contains("overflowHidden")&&(s="overflowHidden"),r.initialUIValues.ampEnabled&&await r.usercentrics.uiReadyAmp().catch((e=>console.warn(`AMP is not initialized: ${e}`))),j(S(mh,{initialUIValues:r.initialUIValues,restartCMP:async()=>{delete window[le],""!==s&&document.body.classList.add(s),await e()},target:i,usercentrics:r.usercentrics}),i.appContainer)}();export{Ai as $,$e as A,er as B,Ve as C,Kt as D,xr as E,Le as F,ti as G,ys as H,Yt as I,Rs as J,ur as K,Os as L,Ms as M,qt as N,ct as O,ws as P,ls as Q,ce as R,Dr as S,Es as T,Ns as U,Ds as V,st as W,ds as X,Ps as Y,yt as Z,at as _,Pr as a,vp as a$,Vs as a0,xs as a1,Fs as a2,ks as a3,Ci as a4,Si as a5,wr as a6,Ar as a7,Lr as a8,Nr as a9,dn as aA,pn as aB,Dc as aC,jc as aD,rp as aE,sf as aF,uf as aG,ms as aH,Hc as aI,q as aJ,Zs as aK,K as aL,ep as aM,oe as aN,bd as aO,ca as aP,_d as aQ,sh as aR,wf as aS,Cn as aT,n as aU,Op as aV,mp as aW,Lp as aX,Np as aY,fp as aZ,pp as a_,Tr as aa,Er as ab,Or as ac,Rr as ad,Ct as ae,Ts as af,bs as ag,Bs as ah,rr as ai,vr as aj,Ss as ak,Ft as al,Is as am,Cs as an,Gt as ao,Ls as ap,As as aq,Jt as ar,un as as,cn as at,rt as au,fn as av,hn as aw,Rn as ax,nt as ay,et as az,gs as b,ap as b$,$p as b0,Tp as b1,Bp as b2,le as b3,Js as b4,Gp as b5,Vp as b6,kp as b7,xp as b8,Mp as b9,C as bA,oh as bB,Cd as bC,Id as bD,tn as bE,se as bF,qd as bG,Qd as bH,Tt as bI,In as bJ,wn as bK,mf as bL,vc as bM,ua as bN,ha as bO,Z as bP,Ap as bQ,tt as bR,Xe as bS,W as bT,uo as bU,me as bV,hu as bW,lh as bX,_e as bY,Kc as bZ,If as b_,Ks as ba,jp as bb,Kp as bc,qp as bd,Fp as be,zd as bf,Jd as bg,Dp as bh,wp as bi,eo as bj,gp as bk,Nd as bl,Vd as bm,hp as bn,Up as bo,Sn as bp,_c as bq,yc as br,E as bs,mc as bt,Tn as bu,Xd as bv,kc as bw,ef as bx,Rd as by,i as bz,Wr as c,On as c0,ye as c1,co as c2,rd as c3,s as c4,ip as c5,op as c6,yd as c7,sp as c8,An as c9,fs as ca,D as cb,u as cc,ve as cd,ae as ce,fe as cf,ge as cg,he as ch,ee as ci,oo as cj,so as ck,z as cl,bc as cm,pe as cn,r as co,lf as cp,df as cq,A as cr,pf as cs,ff as ct,gf as cu,vf as cv,hf as cw,bn as cx,qs as cy,En as cz,Rt as d,_t as e,dt as f,lt as g,fc as h,Jn as i,Br as j,Oe as k,ke as l,Bt as m,St as n,Te as o,gc as p,lr as q,Ee as r,It as s,bt as t,we as u,kt as v,ut as w,Ue as x,S as y,xe as z};